Skip to content

Commit

Permalink
Fix nuke version replacement in job bundle test runner
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Gerveshi <15710060+agerveshi@users.noreply.github.com>
  • Loading branch information
agerveshi committed Sep 14, 2023
1 parent 8b80631 commit a1a34b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def _run_job_bundle_output_test(test_dir: str, dcc_scene_file: str, report_fh, m
contents = contents.replace(tempdir, "/normalized/job/bundle/dir")
contents = contents.replace(tempdir.replace("\\", "/"), "/normalized/job/bundle/dir")
contents = contents.replace(os.getcwd(), "/normalized/cwd")
if expected_nuke_version != test_nuke_version:
if expected_nuke_version and expected_nuke_version != test_nuke_version:
contents = contents.replace(test_nuke_version, expected_nuke_version)
with open(full_filename, "w", encoding="utf8") as f:
f.write(contents)
Expand Down

0 comments on commit a1a34b7

Please sign in to comment.