summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2019-09-04 15:24:45 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2019-09-04 15:24:45 +0200
commit2db0d813d4325e6ca45a12cb275d5cf765f76232 (patch)
tree902a2748f6ca37836714e103ac8f507e307ded8f
parentb819c27aaaacbd629b67dfdceafd2a9ec9c08aec (diff)
test_task: use system username for local testing
-rwxr-xr-xtest_task.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test_task.py b/test_task.py
index f268bc0..b8d6e44 100755
--- a/test_task.py
+++ b/test_task.py
@@ -202,6 +202,9 @@ if __name__ == '__main__':
params['username'] = user_params['username']
except Exception as ex:
print(ex)
+ else:
+ # use system username to generate parameters
+ params['username'] = getpass.getuser()
if basic_args.generate_params:
#prejema lahko samo stringe in ne številk (potrebno je str(int)