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 b38c6ac commit f0fbf91
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 f0fbf91

Please sign in to comment.