Skip to content

Commit

Permalink
t/verify: detect OS properly
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Fu <[email protected]>
  • Loading branch information
vincentkfu committed Feb 4, 2025
1 parent c26c02b commit 0da69e7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions t/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def setup(self, parameters):
failure = ["--name=failure"] + verify

fio_args = layout + success + mangle + failure + [f"--output={self.filenames['output']}"]
logging.debug("fio_args: %s", fio_args)

super().setup(fio_args)

Expand Down Expand Up @@ -167,13 +168,15 @@ def check_result(self):
checked['failure'] = True
if self.fio_opts['verify'] == 'null':
continue
if Requirements.not_macos:
if Requirements.not_windows:
not_macos , _ = Requirements.not_macos
not_windows, _ = Requirements.not_windows
if not_macos:
if not_windows:
expected_errno = 84 # Linux EILSEQ
else:
expected_errno = 42 # Windows EILSEQ
else:
expected_errno = 92 # macOS EILSEQ
expected_errno = 92 # macOS EILSEQ
logging.debug("Error set to %d", expected_errno)
if job['error'] != expected_errno:
self.passed = False
Expand Down

0 comments on commit 0da69e7

Please sign in to comment.