diff --git a/autotest.sh b/autotest.sh index a8a1d35d8..d11525e6e 100755 --- a/autotest.sh +++ b/autotest.sh @@ -116,8 +116,10 @@ if [ $(uname -s) = Linux ]; then fi fi -# Revert NVMe namespaces to default state -nvme_namespace_revert +if [[ $(uname -s) == Linux ]]; then + # Revert NVMe namespaces to default state + nvme_namespace_revert +fi # Delete all leftover lvols and gpt partitions # Matches both /dev/nvmeXnY on Linux and /dev/nvmeXnsY on BSD