summaryrefslogtreecommitdiff
path: root/tests/SConscript
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2013-10-15 18:22:41 -0400
committerSteve Reinhardt <steve.reinhardt@amd.com>2013-10-15 18:22:41 -0400
commitfe61a074a2563e7e5d7d57f0b0ce2158f651e883 (patch)
treec6a12658cd7af27d748a2fd41231050bf8d9c179 /tests/SConscript
parent1bb293d1e7a27e306ca584a3922f2fd13481e248 (diff)
downloadgem5-fe61a074a2563e7e5d7d57f0b0ce2158f651e883.tar.xz
scons: fix minor update-ref bug in regressions
In the unusual case that regressions are run with --update-ref when there is no existing regression output, scons gets confused because it depends on stats.txt to trigger the update, but it has no indication that running the test will generate the stats.txt file. (In the typical case where stats.txt already exists, scons doesn't care about where it came from.) It's easy to fix this just by adding the stats.txt file to the target list for the test action.
Diffstat (limited to 'tests/SConscript')
-rw-r--r--tests/SConscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/SConscript b/tests/SConscript
index 8e4b42d02..5c1eb5f7b 100644
--- a/tests/SConscript
+++ b/tests/SConscript
@@ -282,7 +282,7 @@ def test_builder(env, ref_dir):
new_stats = tgt('stats.txt')
status_file = tgt('status')
- env.Command([status_file],
+ env.Command([status_file, new_stats],
[env.M5Binary, 'run.py', ref_stats],
testAction)