Skip to content

Commit

Permalink
tests: check that we should not find /dev/disk/by-id/google*
Browse files Browse the repository at this point in the history
  • Loading branch information
HuijingHei committed Jun 27, 2023
1 parent 3df83e2 commit 66bc87b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/kola/disks/no-google-device-links
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
## kola:
## platforms: qemu
## exclusive: false
## 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"

0 comments on commit 66bc87b

Please sign in to comment.