| Index: scripts/slave/unittests/recipe_simulation_test.py
|
| diff --git a/scripts/slave/unittests/recipe_simulation_test.py b/scripts/slave/unittests/recipe_simulation_test.py
|
| index 5e5b9315f5383fcd893b45a85317d8933bd70e25..81dd7284ecfc6e1585d0e4bb35801b74516daeba 100755
|
| --- a/scripts/slave/unittests/recipe_simulation_test.py
|
| +++ b/scripts/slave/unittests/recipe_simulation_test.py
|
| @@ -4,7 +4,9 @@
|
| # found in the LICENSE file.
|
|
|
| import os
|
| +import pipes
|
| import shutil
|
| +import subprocess
|
| import sys
|
|
|
| import test_env # pylint: disable=W0403,W0611
|
| @@ -21,5 +23,18 @@ RECIPES_PY = os.path.join(
|
| os.path.dirname(os.path.dirname(os.path.realpath(__file__))),
|
| 'recipes.py')
|
|
|
| -args = [sys.argv[0], 'simulation_test'] + sys.argv[1:]
|
| -os.execvp(RECIPES_PY, args)
|
| +args = [RECIPES_PY, 'simulation_test'] + sys.argv[1:]
|
| +ret = subprocess.call(args)
|
| +if ret:
|
| + # TODO(martiniss): Move this logic into recipes-py. http://crbug.com/601662
|
| + if not any(x.startswith('train') for x in args):
|
| + print
|
| + print 'To train new expectations, run:'
|
| + print ' ', sys.argv[0], 'train'
|
| + print
|
| + if not any(x.startswith('--html_report') for x in args):
|
| + print 'To create a coverage report, run:'
|
| + print ' ', ' '.join(pipes.quote(arg) for arg in sys.argv),
|
| + print '--html_report PATH'
|
| + print
|
| +sys.exit(ret)
|
|
|