Revision 26a61f87
b/qa/ganeti-qa.py | ||
---|---|---|
237 | 237 |
|
238 | 238 |
""" |
239 | 239 |
parser = optparse.OptionParser(usage="%prog [options] <config-file>") |
240 |
parser.add_option('--dry-run', dest='dry_run', |
|
241 |
action="store_true", |
|
242 |
help="Show what would be done") |
|
243 | 240 |
parser.add_option('--yes-do-it', dest='yes_do_it', |
244 | 241 |
action="store_true", |
245 | 242 |
help="Really execute the tests") |
b/qa/qa_utils.py | ||
---|---|---|
111 | 111 |
args.append('-oClearAllForwardings=yes') |
112 | 112 |
args.append('-oForwardAgent=yes') |
113 | 113 |
args.append(node) |
114 |
|
|
115 |
if qa_config.options.dry_run: |
|
116 |
prefix = 'exit 0; ' |
|
117 |
else: |
|
118 |
prefix = '' |
|
119 |
|
|
120 |
args.append(prefix + cmd) |
|
114 |
args.append(cmd) |
|
121 | 115 |
|
122 | 116 |
print 'SSH:', utils.ShellQuoteArgs(args) |
123 | 117 |
|
Also available in: Unified diff