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 16, 2023
1 parent b3bfcfa commit fcb41b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/kola/var-mount/scsi-id/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,9 @@ if ! grep -q "63-scsi-sg3_symlink.rules" $tempfile; then
fi

rm -f $tempfile

# https://issues.redhat.com/browse/OCPBUGS-13754
links=$(ls /dev/disk/by-id/google* 2>/dev/null)
if [ -n "${links:-}" ]; then
fatal "Error: should not find /dev/disk/by-id/google* device links on non GCP"
fi

0 comments on commit fcb41b5

Please sign in to comment.