summaryrefslogtreecommitdiff
path: root/tools/autopilot
diff options
authorThomi Richards <thomi.richards@canonical.com>2012-03-07 09:12:33 +1300
committerThomi Richards <thomi.richards@canonical.com>2012-03-07 09:12:33 +1300
commit881145de752e32c87ec049e70b9327f68d820540 (patch)
treeefe802faaa644e008b42c9009aba69da11c701aa /tools/autopilot
parent9e411b01fec8d5b52cd27290e325f3bd24ede8a7 (diff)
Adds an option to the autopilot script so we can pick where to store videos of failed tests.
(bzr r2055.1.1)
Diffstat (limited to 'tools/autopilot')
-rwxr-xr-xtools/autopilot3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/autopilot b/tools/autopilot
index 1c1c52e13..b06490a63 100755
--- a/tools/autopilot
+++ b/tools/autopilot
@@ -78,6 +78,8 @@ def parse_arguments():
parser_run.add_argument('-r', '--record', action='store_true', default=False,
required=False, help="Record failing tests. Required 'recordmydesktop' app to be installed. Videos \
are stored in /tmp/autopilot.")
+ parser_run.add_argument("-rd", "--record-directory", required=False,
+ default="/tmp/autopilot", type=str, help="Directory to put recorded tests (only if -r) specified.")
parser_run.add_argument("test", nargs="*", help="Specify tests to run, as listed by the 'list' command")
@@ -113,6 +115,7 @@ def run_tests(args):
if args.record:
autopilot.globals.video_recording_enabled = True
+ autopilot.globals.video_record_directory = args.record_directory
loader = TestLoader()
if args.test: