diff options
| author | Jeff Lane <jeffrey.lane@canonical.com> | 2014-11-24 13:55:26 -0500 |
|---|---|---|
| committer | Jeff Lane <jeffrey.lane@canonical.com> | 2014-11-24 13:55:26 -0500 |
| commit | 6945c9369e03d2eba7326e74cb01db02c3443705 (patch) | |
| tree | 5e0aff933f9083f57015684d91710c4da45cb10a /bin | |
| parent | cea945a7bbcc1ea6561095c1a87d5d44a656a09d (diff) | |
Slight modification to the Warning check regex to only abort when the device we are testing generates a read-only warning
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/storage_test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/storage_test b/bin/storage_test index 9346037..fbc234e 100755 --- a/bin/storage_test +++ b/bin/storage_test @@ -37,7 +37,7 @@ then echo "$disk is a block device" #Add a check for warnings - WARN=`parted -l -s |grep "^Warning.*[Rr]ead-only" 2>&1` || WARN='no' + WARN=`parted -l -s |grep "^Warning.*${disk}.*[Rr]ead-only" 2>&1` || WARN='no' if [ "$WARN" != "no" ] then echo "Warning found in parted output:" |
