Skip to content
Snippets Groups Projects
Commit 2376518d authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

Adaptation to the Linux environment

parent 0c50506d
No related branches found
No related tags found
1 merge request!2added feature to guess the compression configuration
...@@ -91,9 +91,15 @@ def test_invalid_option(): ...@@ -91,9 +91,15 @@ def test_invalid_option():
assert(returncode == EXIT_FAILURE) assert(returncode == EXIT_FAILURE)
assert(stdout == HELP_STRING) assert(stdout == HELP_STRING)
if arg == '-q': if arg == '-q':
assert(stderr == "cmp_tool: invalid option -- q\n") if sys.platform == 'linux':
assert(stderr == "%s: invalid option -- 'q'\n" % (PATH_CMP_TOOL))
else:
assert(stderr == "cmp_tool: invalid option -- q\n")
else: else:
assert(stderr == "cmp_tool: unrecognized option `--not_used'\n") if sys.platform == 'linux':
assert(stderr == "%s: unrecognized option '--not_used'\n" % (PATH_CMP_TOOL))
else:
assert(stderr == "cmp_tool: unrecognized option `--not_used'\n")
# def option requires an argument # def option requires an argument
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment