Bobby R. Bruce
d11c40dcac
misc: Run pre-commit run --all-files
...
This ensures `isort` is applied to all files in the repo.
Change-Id: Ib7ced1c924ef1639542bf0d1a01c5737f6ba43e9
2023-11-29 22:06:41 -08:00
Bobby R. Bruce
787204c92d
python: Apply Black formatter to Python files
...
The command executed was `black src configs tests util`.
Change-Id: I8dfaa6ab04658fea37618127d6ac19270028d771
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/47024
Maintainer: Bobby Bruce <bbruce@ucdavis.edu >
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com >
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2022-08-03 09:10:41 +00:00
Giacomo Travaglini
93049b5143
testlib: Explicitly use python3 when running regressions
...
Change-Id: I7968bea5db15a25c97abb68333c04e3ff1ae78f9
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com >
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/52743
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com >
Maintainer: Jason Lowe-Power <power.jg@gmail.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2021-11-12 08:59:39 +00:00
Andreas Sandberg
cbcd3ecf15
tests: Remove Python 2.7 glue code
...
Remove uses of six and from __future__ imports as they are no longer
needed.
Change-Id: I74b5250722abe1e202f31a9ec1d4cc04039df168
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com >
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39757
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com >
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu >
Tested-by: kokoro <noreply+kokoro@google.com >
2021-01-27 10:18:43 +00:00
Bobby R. Bruce
7ffd684334
tests,python: Upgrading testlib to function with Python2
...
Change-Id: I9926b1507e9069ae8564c31bdd377b2b916462a2
Issue-on: https://gem5.atlassian.net/browse/GEM5-395
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29088
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu >
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-05-24 23:29:52 +00:00
Jason Lowe-Power
fced86b061
ext,tests: Make return code based on test results
...
This patch also fixes a spelling mistake.
Change-Id: I8635216e512c10913a9cda54541d7e31e0d22a40
Signed-off-by: Jason Lowe-Power <jason@lowepower.com >
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17450
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com >
2019-03-21 15:57:10 +00:00
Gabe Black
5dda7fb959
tests: Fix tests/main.py so it can be run from anywhere.
...
tests/main.py was trying to find paths relative to itself using the
string __name__ (which was __main__) when it should have been using the
string __file__ which holds the name of the file being executed.
Change-Id: I5ff4c42fc7d8b75ff6b96c3cde61baf731d84738
Reviewed-on: https://gem5-review.googlesource.com/c/15675
Reviewed-by: Jason Lowe-Power <jason@lowepower.com >
Maintainer: Jason Lowe-Power <jason@lowepower.com >
2019-01-17 20:09:35 +00:00
Andrea Mondelli
3d54f6d42c
misc: updated shabang for python script
...
The default python on MacOS doesn’t have an alias to python2.
The official python version supported in gem5 is Python2.7.
This patch updates the shabang according to the version required in gem5.
Change-Id: I9533c0f7858b5b3cab0ef101be1ee5cd718105b0
Reviewed-on: https://gem5-review.googlesource.com/c/15375
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com >
Reviewed-by: Jason Lowe-Power <jason@lowepower.com >
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com >
2019-01-11 17:41:02 +00:00
Sean Wilson
07ce662bd2
tests,ext: Add a new testing library proposal
...
The new test library is split into two parts: The framework which resides
in ext/, and the gem5 helping components in /tests/gem5.
Change-Id: Ib4f3ae8d7eb96a7306335a3e739b7e8041aa99b9
Signed-off-by: Sean Wilson <spwilson2@wisc.edu >
Reviewed-on: https://gem5-review.googlesource.com/4421
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com >
Maintainer: Jason Lowe-Power <jason@lowepower.com >
2018-08-17 16:37:42 +00:00