Skip to content

Commit eb6203c

Browse files
rikardfalkeborndanmar
authored andcommitted
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).
1 parent 3ff4d83 commit eb6203c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/test-my-pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
print(args)
2323

24-
work_path = args.work_path
24+
work_path = os.path.abspath(args.work_path)
2525
if not os.path.exists(work_path):
2626
os.makedirs(work_path)
2727
master_dir = os.path.join(work_path, 'cppcheck')

0 commit comments

Comments
 (0)