Add atomicgroup support to the command line interface.
Signed-off-by: Gregory Smith <[email protected]>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3030 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/cli/topic_common.py b/cli/topic_common.py
index 4886350..7167525 100755
--- a/cli/topic_common.py
+++ b/cli/topic_common.py
@@ -55,7 +55,8 @@
atest.print_*() methods.
"""
-import os, sys, pwd, optparse, re, textwrap, urllib2, getpass, socket
+import getpass, optparse, os, pwd, re, socket, sys, textwrap, traceback
+import socket, urllib2
from autotest_lib.cli import rpc
from autotest_lib.frontend.afe.json_rpc import proxy
@@ -97,6 +98,7 @@
'reboot_after': 'Post-job reboot',
'experimental': 'Experimental',
'synch_count': 'Sync Count',
+ 'max_number_of_machines': 'Max. hosts to use',
}
# In the failure, tag that will replace the item.
@@ -138,7 +140,7 @@
Should only be instantiated by itself for usage
references, otherwise, the <topic> objects should
be used."""
- msg_topic = "[acl|host|job|label|test|user]"
+ msg_topic = "[acl|host|job|label|atomicgroup|test|user]"
usage_action = "[action]"
msg_items = ''
@@ -164,6 +166,8 @@
def generic_error(self, msg):
+ if self.debug:
+ traceback.print_exc()
print >> sys.stderr, msg
sys.exit(1)