diff options
author | Gabe Black <gabeblack@google.com> | 2018-11-21 17:35:28 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-11-29 01:22:14 +0000 |
commit | e186f870896f9b32a324958f0fa06e45c79c0534 (patch) | |
tree | 100496beaf08a8a0ca9a57bf311c6576f96c308e /src/systemc | |
parent | 93c234143d98b511f43432885475dba790483e56 (diff) | |
download | gem5-e186f870896f9b32a324958f0fa06e45c79c0534.tar.xz |
systemc: Run the systemc tests with the CWD in the build directory.
This will prevent some (but not all) output files the tests generate
from ending up outside the build directory. Because some output file
streams are constructed as global objects, their paths are resolved
relative to the CWD when gem5 starts, before the config script has a
chance to change it.
Subsequent changes will make verify.py should make gem5 start with the
correct working directory, cleaning up the remaining leaking files.
Change-Id: I75a1256719dab4c98ab868c209d09b9dcdabb458
Reviewed-on: https://gem5-review.googlesource.com/c/14518
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc')
-rwxr-xr-x | src/systemc/tests/verify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemc/tests/verify.py b/src/systemc/tests/verify.py index 87c5d127e..c9ede77a0 100755 --- a/src/systemc/tests/verify.py +++ b/src/systemc/tests/verify.py @@ -165,7 +165,7 @@ class RunPhase(TestPhaseBase): '--quiet', config_path, '--working-dir', - os.path.dirname(test.src_dir()) + os.path.dirname(test.dir()) ]) # Ensure the output directory exists. if not os.path.exists(test.m5out_dir()): |