[LNT] r187523 - Warn when --remote-port or --remote-user are given without --remote.

Chris Matthews cmatthews5 at apple.com
Wed Jul 31 13:39:55 PDT 2013


Author: cmatthews
Date: Wed Jul 31 15:39:55 2013
New Revision: 187523

URL: http://llvm.org/viewvc/llvm-project?rev=187523&view=rev
Log:
Warn when --remote-port or --remote-user are given without --remote.

Modified:
    lnt/trunk/lnt/tests/nt.py

Modified: lnt/trunk/lnt/tests/nt.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/nt.py?rev=187523&r1=187522&r2=187523&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/nt.py (original)
+++ lnt/trunk/lnt/tests/nt.py Wed Jul 31 15:39:55 2013
@@ -1286,7 +1286,12 @@ class NTTest(builtintest.BuiltinTest):
                 parser.error('--remote-port is required with --remote')
             if opts.remote_user is None:
                 parser.error('--remote-user is required with --remote')
-
+        else:
+            if opts.remote_port is not None:
+                parser.error('--remote is required with --remote-port')
+            if opts.remote_user is not  None:
+                parser.error('--remote is required with --remote-user')
+                
         # libLTO should exist, if given.
         if opts.liblto_path:
             if not os.path.exists(opts.liblto_path):





More information about the llvm-commits mailing list