From f6c4c21172f9ecb16aa0e32aac13032e53eba1d4 Mon Sep 17 00:00:00 2001 From: Nicolas Dechesne Date: Wed, 18 Jan 2017 17:30:04 +0100 Subject: test-runner: user $HOME instead of /root Avoid hardcoding '/root', and use $HOME instead. A nice side effect is that it allows to use test-runner on the PC as standard user for local debug.. Change-Id: I2003565f9a9aa432dcf5e02cc49f7e87fe8ed946 Signed-off-by: Nicolas Dechesne --- automated/utils/test-runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'automated') diff --git a/automated/utils/test-runner.py b/automated/utils/test-runner.py index 9a96aac..2982b4a 100755 --- a/automated/utils/test-runner.py +++ b/automated/utils/test-runner.py @@ -507,10 +507,10 @@ class ResultParser(object): def get_args(): parser = argparse.ArgumentParser() - parser.add_argument('-o', '--output', default='/root/output', dest='output', + parser.add_argument('-o', '--output', default=os.getenv("HOME") + '/output', dest='output', help=''' specify a directory to store test and result files. - Default: /root/output + Default: $HOME/output ''') parser.add_argument('-p', '--test_plan', default=None, dest='test_plan', help=''' -- cgit v1.2.3