Skip to content

Commit 5c562a7

Browse files
committed
Merge pull request #14: Test numeric ionice classes
2 parents ed1c56c + 724e9a8 commit 5c562a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rotate_backups/tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ def test_argument_validation(self):
120120
# Test that an invalid ionice scheduling class causes an error to be reported.
121121
returncode, output = run_cli(main, '--ionice=unsupported-class')
122122
assert returncode != 0
123+
# Test that a numbered ionice scheduling class does not causes an error.
124+
returncode, output = run_cli(main, '--ionice=3')
125+
assert returncode == 0
123126
# Test that an invalid rotation scheme causes an error to be reported.
124127
returncode, output = run_cli(main, '--hourly=not-a-number')
125128
assert returncode != 0

0 commit comments

Comments
 (0)