forked from coreos/fedora-coreos-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: check that we should not find
/dev/disk/by-id/google*
device links on non GCP See https://issues.redhat.com/browse/OCPBUGS-13754 coreos/fedora-coreos-tracker#1475 (comment)
- Loading branch information
1 parent
3df83e2
commit 83b68ad
Showing
2 changed files
with
24 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
## kola: | ||
## platforms: qemu | ||
## description: Verify no /dev/disk/by-id/*google* device links are found on non GCP. | ||
|
||
# See https://issues.redhat.com/browse/OCPBUGS-13754 | ||
|
||
set -xeuo pipefail | ||
|
||
. $KOLA_EXT_DATA/commonlib.sh | ||
|
||
links=$(find /dev/disk/by-id/ -iname "*google*") | ||
if [[ -n "${links:-}" ]]; then | ||
fatal "Error: should not find /dev/disk/by-id/*google* device links on non GCP" | ||
fi | ||
ok "No /dev/disk/by-id/*google* device links are found on non GCP" |
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