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>
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 @@
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