changeset 12928a51616a in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=12928a51616a
description:
tests: Remove working dir assumption in tgen tests
The traffic generator tests currently assume that they are run from
the root of the source directory. This sometimes breaks tests when
they are run using the new test framework.
Change-Id: I6538a7902694c5d2c980295e076ea1c09acc4291
Signed-off-by: Andreas Sandberg <[email protected]>
Reviewed-by: Curtis Dunham <[email protected]>
diffstat:
tests/configs/tgen-dram-ctrl.py | 3 ++-
tests/configs/tgen-simple-mem.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r c48c7cc5a522 -r 12928a51616a tests/configs/tgen-dram-ctrl.py
--- a/tests/configs/tgen-dram-ctrl.py Thu Jun 02 14:14:36 2016 +0100
+++ b/tests/configs/tgen-dram-ctrl.py Thu Jun 02 15:20:24 2016 +0100
@@ -45,7 +45,8 @@
# even if this is only a traffic generator, call it cpu to make sure
# the scripts are happy
-cpu = TrafficGen(config_file = "tests/quick/se/70.tgen/tgen-dram-ctrl.cfg")
+cpu = TrafficGen(
+ config_file=srcpath("tests/quick/se/70.tgen/tgen-dram-ctrl.cfg"))
# system simulated
system = System(cpu = cpu, physmem = DDR3_1600_x64(),
diff -r c48c7cc5a522 -r 12928a51616a tests/configs/tgen-simple-mem.py
--- a/tests/configs/tgen-simple-mem.py Thu Jun 02 14:14:36 2016 +0100
+++ b/tests/configs/tgen-simple-mem.py Thu Jun 02 15:20:24 2016 +0100
@@ -45,7 +45,8 @@
# even if this is only a traffic generator, call it cpu to make sure
# the scripts are happy
-cpu = TrafficGen(config_file = "tests/quick/se/70.tgen/tgen-simple-mem.cfg")
+cpu = TrafficGen(
+ config_file=srcpath("tests/quick/se/70.tgen/tgen-simple-mem.cfg"))
# system simulated
system = System(cpu = cpu, physmem = SimpleMemory(),
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev