comparison mx/commands.py @ 11403:e45b540b0ef2

clearer error message
author Doug Simon <doug.simon@oracle.com>
date Fri, 23 Aug 2013 12:29:27 +0200
parents a8e618fd8868
children 821ed0a436f2
comparison
equal deleted inserted replaced
11402:7401a9c8a7bb 11403:e45b540b0ef2
756 756
757 757
758 vmArgs, tests = _extract_VM_args(args) 758 vmArgs, tests = _extract_VM_args(args)
759 for t in tests: 759 for t in tests:
760 if t.startswith('-'): 760 if t.startswith('-'):
761 mx.abort('VM option ' + t + ' must precede first test name') 761 mx.abort('VM option ' + t + ' must precede ' + tests[0])
762 762
763 def containsAny(c, substrings): 763 def containsAny(c, substrings):
764 for s in substrings: 764 for s in substrings:
765 if s in c: 765 if s in c:
766 return True 766 return True