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.
This commit is contained in:
parent
1bb293d1e7
commit
fe61a074a2
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ def test_builder(env, ref_dir):
|
||||||
new_stats = tgt('stats.txt')
|
new_stats = tgt('stats.txt')
|
||||||
status_file = tgt('status')
|
status_file = tgt('status')
|
||||||
|
|
||||||
env.Command([status_file],
|
env.Command([status_file, new_stats],
|
||||||
[env.M5Binary, 'run.py', ref_stats],
|
[env.M5Binary, 'run.py', ref_stats],
|
||||||
testAction)
|
testAction)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue