Skip to content

Commit 569296d

Browse files
author
Peter Amstutz
committed
Windows testing workaround
1 parent 3c05901 commit 569296d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cwltest/tests/test_categories.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,24 @@ def test_unsupported_with_required_tests(self):
1616
self.assertEqual(error_code, 1)
1717
print(stderr)
1818
stderr = re.sub(r" '?--outdir=[^ ]*", '', stderr)
19+
if os.name == 'nt':
20+
q = "'"
21+
else:
22+
q = ""
1923
self.assertEqual(
2024
"Test [1/2] Required test that is unsupported (without tags){n}"
2125
"{n}"
22-
"Test 1 failed: mock-cwl-runner --quiet return-unsupported.cwl v1.0{p}cat-job.json{n}"
26+
"Test 1 failed: mock-cwl-runner --quiet return-unsupported.cwl {q}v1.0{p}cat-job.json{q}{n}"
2327
"Required test that is unsupported (without tags){n}"
2428
"Does not support required feature{n}"
2529
"{n}"
2630
"Test [2/2] Required test that is unsupported (with tags){n}"
2731
"{n}"
28-
"Test 2 failed: mock-cwl-runner --quiet return-unsupported.cwl v1.0{p}cat-job.json{n}"
32+
"Test 2 failed: mock-cwl-runner --quiet return-unsupported.cwl {q}v1.0{p}cat-job.json{q}{n}"
2933
"Required test that is unsupported (with tags){n}"
3034
"Does not support required feature{n}"
3135
"{n}"
32-
"0 tests passed, 2 failures, 0 unsupported features{n}".format(n=n, p=p), stderr)
36+
"0 tests passed, 2 failures, 0 unsupported features{n}".format(n=n, p=p, q=q), stderr)
3337

3438
def test_unsupported_with_optional_tests(self):
3539
args = ["--test", get_data("tests/test-data/optional-unsupported.yml")]

0 commit comments

Comments
 (0)