Skip to content

Commit

Permalink
test: Fix running Test_JobWrapperTemplate on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Jun 5, 2024
1 parent ce73016 commit 4b8d583
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""
import json
import os
import re
import shutil
import sys

Expand Down Expand Up @@ -311,7 +312,7 @@ def test_createAndExecuteRelocatedJobWrapperTemplate_success(extraOptions):

assert result.returncode == 127, result.stderr
assert result.stdout == b"", result.stdout
assert f"{jobExecutableRelocatedPath}: not found".encode() in result.stderr, result.stderr
assert re.search(rf"{jobExecutableRelocatedPath}: (No such file or directory|not found)", result.stderr.decode())

# 3. Now we relocate the files as a container bind mount would do and execute the relocated executable file in a subprocess
# We expect it to work
Expand Down Expand Up @@ -424,7 +425,7 @@ def test_createAndExecuteJobWrapperOfflineTemplate_success(extraOptions):

assert result.returncode == 127, result.stderr
assert result.stdout == b"", result.stdout
assert f"{jobExecutableRelocatedPath}: not found".encode() in result.stderr, result.stderr
assert re.search(rf"{jobExecutableRelocatedPath}: (No such file or directory|not found)", result.stderr.decode())

# 3. Now we relocate the files as if they were on a remote resource and execute the relocated executable file in a subprocess
# We expect it to fail because the payload parameters are not available
Expand Down

0 comments on commit 4b8d583

Please sign in to comment.