From 0aa3db99b02953c96574442173743e179d5f1112 Mon Sep 17 00:00:00 2001 From: Huijing Hei Date: Fri, 16 Jun 2023 15:12:12 +0800 Subject: [PATCH] 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 https://github.com/coreos/fedora-coreos-tracker/issues/1475#issuecomment-1551857322 --- tests/kola/var-mount/scsi-id/test.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/kola/var-mount/scsi-id/test.sh b/tests/kola/var-mount/scsi-id/test.sh index 591fd2bf04..8f0290e08c 100755 --- a/tests/kola/var-mount/scsi-id/test.sh +++ b/tests/kola/var-mount/scsi-id/test.sh @@ -4,7 +4,8 @@ ## platforms: qemu ## additionalDisks: ["5G:mpath"] ## description: Verify udev rules /dev/disk/by-id/scsi-* symlinks exist -## in initramfs. +## in initramfs, and should not find /dev/disk/by-id/google* device links +## on non GCP. # See https://bugzilla.redhat.com/show_bug.cgi?id=1990506 @@ -39,3 +40,9 @@ if ! grep -q "63-scsi-sg3_symlink.rules" $tempfile; then fi rm -f $tempfile + +# https://issues.redhat.com/browse/OCPBUGS-13754 +links=$(find /dev/disk/by-id/ -name google*) +if [ -n "${links:-}" ]; then + fatal "Error: should not find /dev/disk/by-id/google* device links on non GCP" +fi