Skip to content

Commit

Permalink
adjust workflow test considering possible distinct permissions during…
Browse files Browse the repository at this point in the history
… listing
  • Loading branch information
fmigneault committed Nov 14, 2022
1 parent 9976b4d commit b75d110
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/functional/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,10 +1222,11 @@ def mock_tmp_input(requests_mock):
# only the file names should remain (not nested dirs), as per the directory listing package definition
# perform initial check that output from 'ls' is found
output_lines = list(filter(lambda _line: bool(_line), output_data.split("\n")))
pattern_perms = re.compile(r"-rw-[r-][w-]-r-- .*") # group perms variable on different platforms
self.assert_test(
lambda: (
len(output_lines) == len(expect_http_files) and
all(line.startswith("-rw-rw-r-- ") for line in output_lines) and
all(re.match(pattern_perms, line) for line in output_lines) and
all(" /var/lib/cwl/stg" in line for line in output_lines)
),
message="Workflow output file expected to contain single file with raw string listing of "
Expand Down

0 comments on commit b75d110

Please sign in to comment.