test-my-pr: Allow work_path to be relative (#2444)

Previously, calling test-my-pr with a relative work-path resulted in a
crash when trying to create the result file (due to the change of
current working directory).
This commit is contained in:
Rikard Falkeborn 2019-12-12 16:43:40 +01:00 committed by Daniel Marjamäki
parent 3ff4d83e6d
commit eb6203cee3
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ if __name__ == "__main__":
print(args)
work_path = args.work_path
work_path = os.path.abspath(args.work_path)
if not os.path.exists(work_path):
os.makedirs(work_path)
master_dir = os.path.join(work_path, 'cppcheck')