Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/12272

Change subject: systemc: Make verify.py run the tests from the directory they expect.
......................................................................

systemc: Make verify.py run the tests from the directory they expect.

Change-Id: I4c902cd81f7e46f81f601cae0ff2da044ef48f85
---
M src/systemc/tests/verify.py
1 file changed, 6 insertions(+), 2 deletions(-)



diff --git a/src/systemc/tests/verify.py b/src/systemc/tests/verify.py
index 9c98d47..f56c50a 100755
--- a/src/systemc/tests/verify.py
+++ b/src/systemc/tests/verify.py
@@ -142,16 +142,19 @@
             '--kill-after', str(args.timeout * 2),
             str(args.timeout)
         ]
+        curdir = os.getcwd()
         def run_test(test):
             cmd = []
             if args.timeout:
                 cmd.extend(timeout_cmd)
             cmd.extend([
                 test.full_path(),
-                '-red', test.m5out_dir(),
+                '-red', os.path.abspath(test.m5out_dir()),
                 '--listener-mode=off',
                 '--quiet',
-                config_path
+                config_path,
+                '--working-dir',
+                os.path.dirname(test.src_dir())
             ])
             # Ensure the output directory exists.
             if not os.path.exists(test.m5out_dir()):
@@ -162,6 +165,7 @@
                 returncode = error.returncode
             else:
                 returncode = 0
+            os.chdir(curdir)
             with open(test.returncode_file(), 'w') as rc:
                 rc.write('%d\n' % returncode)


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/12272
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I4c902cd81f7e46f81f601cae0ff2da044ef48f85
Gerrit-Change-Number: 12272
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to