commit b9d66c4dfb0e50466872208c7f8bb22600eb8c06 Author: Damian Johnson <ata...@torproject.org> Date: Mon Feb 9 08:30:20 2015 -0800
Warn if user doesn't provide any runnable integ targets Sebastian was understandably confused on ticket 14804 when running '--target ONLINE' didn't run anything. --- run_tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run_tests.py b/run_tests.py index 63102a4..c696b1d 100755 --- a/run_tests.py +++ b/run_tests.py @@ -387,6 +387,9 @@ def _get_args(argv): args['run_targets'] = run_targets args['attribute_targets'] = attribute_targets + + if not args['run_targets']: + raise ValueError("This wouldn't run anything. You need to provide at least one target that starts with 'RUN_'.") elif opt == '--test': args['specific_test'] = arg elif opt in ('-l', '--log'): _______________________________________________ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits