Changeset 2028 for pjproject/trunk/pjsip-apps/src/test-pjsua/runall.py
- Timestamp:
- Jun 16, 2008 1:04:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/test-pjsua/runall.py
r2025 r2028 2 2 import os 3 3 import sys 4 5 # Usage: 6 # runall.py [test-to-resume] 7 4 8 5 9 # Initialize test list … … 29 33 tests = [t for t in tests if t.find(pat)==-1] 30 34 35 # Resume test? 36 resume_script="" 37 if len(sys.argv) > 1: 38 if sys.argv[1][0]=='-' or sys.argv[1][0]=='/': 39 print "Usage:" 40 print " runall.py [RESUME]" 41 print "where" 42 print " RESUME is string/substring to specify where to resume tests." 43 print " If this argument is omited, tests will start from the beginning." 44 sys.exit(0) 45 resume_script=sys.argv[1] 46 47 31 48 # Now run the tests 32 49 for t in tests: 50 if resume_script!="" and t.find(resume_script)==-1: 51 print "Skipping " + t +".." 52 continue 53 resume_script="" 33 54 cmdline = "python run.py " + t 34 55 print "Running " + cmdline
Note: See TracChangeset
for help on using the changeset viewer.