diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2017-07-20 13:28:58 +0100 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2017-07-20 13:28:58 +0100 |
commit | 855acbe11feeada72041395002fc8e9349146c63 (patch) | |
tree | 7ce4b2877a3a44c6a37db6add7e52f9251c8e77d | |
parent | fd1f392f983803e7189e264dda22790c54950c8f (diff) |
test-runner: set a proper default for $HOME
In case $HOME is not set, getting the environment variable returns None.
This can't be concatenated with string without casting. This patch
changes the default to empty string in case $HOME is not set.
Change-Id: I4ba5c0e5a4952b31d6bac8e8cf225ef2ffa131d3
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
-rwxr-xr-x | automated/utils/test-runner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/automated/utils/test-runner.py b/automated/utils/test-runner.py index 67175f1..4c40bb7 100755 --- a/automated/utils/test-runner.py +++ b/automated/utils/test-runner.py @@ -696,7 +696,7 @@ class ResultParser(object): def get_args(): parser = argparse.ArgumentParser() - parser.add_argument('-o', '--output', default=os.getenv("HOME") + '/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: $HOME/output |