changeset 4eec8250c38d in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=4eec8250c38d
description:
        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:

 tests/SConscript |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r ee049bfce978 -r 4eec8250c38d tests/SConscript
--- a/tests/SConscript  Tue Oct 15 14:22:44 2013 -0400
+++ b/tests/SConscript  Tue Oct 15 18:22:41 2013 -0400
@@ -282,7 +282,7 @@
     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)
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to