[tor-commits] [stem/master] Warn if user doesn't provide any runnable integ targets

atagar at torproject.org atagar at torproject.org
Mon Feb 9 16:30:25 UTC 2015


commit b9d66c4dfb0e50466872208c7f8bb22600eb8c06
Author: Damian Johnson <atagar at 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'):



More information about the tor-commits mailing list