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 8c0e37a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/kola/disks/device-link
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"

0 comments on commit 8c0e37a

Please sign in to comment.