From 1085e6fd40400aaf5e4bf9d8c68adebb6148a03a Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 4 Oct 2016 09:44:55 -0700 Subject: [PATCH] autotest: only delete partitions on NVMe namespaces Don't try to delete partitions on NVMe block devices that are already partitions. For example, clean up nvme0n1 but not nvme0n1p1. Change-Id: I1f642abd7f6ff6b9b6c08d65afee04b9bc9a3430 Signed-off-by: Daniel Verkamp --- autotest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotest.sh b/autotest.sh index 2dccc86b3..a613c9b61 100755 --- a/autotest.sh +++ b/autotest.sh @@ -49,7 +49,7 @@ if [ $(uname -s) = Linux ]; then sleep 10 # Delete all partitions on NVMe devices - devs=`lsblk -l -o NAME | grep nvme` + devs=`lsblk -l -o NAME | grep nvme | grep -v p` for dev in $devs; do parted -s /dev/$dev mklabel msdos done