-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kola: Do failed units/SELinux checks both before *and* after tests
First: Revert "Revert "kola: Add --no-default-checks"" (this reverts commit: 57b3520 ) Now, when I went to add the SELinux denials check, I completely missed that we only were checking for denials *before* the test runs. We obviously want to check both before and after - the same way we do with e.g. looking for errors on the console. As part of this, I'd also added `--no-default-checks` but it actually didn't work. Fix that so that it does work, and add a test case with a failing systemd unit that verifies this, so we can test the test system. In order to help ratchet things, also add a special `default-checks` entry to the denylist. This way if e.g. we are hitting SELinux AVC denials just on one arch/test we can turn them off temporarily.
- Loading branch information
Showing
6 changed files
with
80 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
# Intentionally cause a systemd unit failure that should be skipped with --no-default-checks | ||
set -xeuo pipefail | ||
systemd-run --wait --unit should-fail.service -q false || true | ||
echo "ok started failed service" | ||
|