Use binary path in testBazelReporter reporter output path

This commit is contained in:
Martin Hořeňovský 2022-06-21 14:21:12 +02:00
parent a369267874
commit bdfa920f93
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ if len(sys.argv) != 3:
bin_path = os.path.abspath(sys.argv[1])
output_dir = os.path.abspath(sys.argv[2])
xml_out_path = os.path.join(output_dir, "bazel-out.xml")
xml_out_path = os.path.join(output_dir, '{}.xml'.format(os.path.basename(bin_path)))
# Ensure no file exists from previous test runs
if os.path.isfile(xml_out_path):