From fe61a074a2563e7e5d7d57f0b0ce2158f651e883 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Tue, 15 Oct 2013 18:22:41 -0400 Subject: [PATCH] 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. --- tests/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2