diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-12-06 16:54:27 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-12-06 16:54:27 -0500 |
commit | 380f5927f73f4b9ab48d82ce44c8c6e34b3c3e5a (patch) | |
tree | f9227e8c8c46395f67f8b364b5b7f835c1668999 /pcr/9mount/fix-checks.patch | |
parent | 418e0caa91977ff47dabe2ae40b16cecb8689771 (diff) | |
download | abslibre-380f5927f73f4b9ab48d82ce44c8c6e34b3c3e5a.tar.gz abslibre-380f5927f73f4b9ab48d82ce44c8c6e34b3c3e5a.tar.bz2 abslibre-380f5927f73f4b9ab48d82ce44c8c6e34b3c3e5a.zip |
mv ~lukeshu/9mount pcr/
Diffstat (limited to 'pcr/9mount/fix-checks.patch')
-rw-r--r-- | pcr/9mount/fix-checks.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pcr/9mount/fix-checks.patch b/pcr/9mount/fix-checks.patch new file mode 100644 index 000000000..9af711ba5 --- /dev/null +++ b/pcr/9mount/fix-checks.patch @@ -0,0 +1,24 @@ +--- test.sh.orig 2012-10-15 11:15:07.000000000 -0400 ++++ test.sh 2012-10-15 11:15:11.000000000 -0400 +@@ -7,7 +7,7 @@ + shift; shift + actual=$(9mount -n "$@" 2>&1) + aopts=$(echo $actual |sed 's/.*-o \([^ ]*\) .*/\1/' |tr , '\n' |sort |tr '\n' , |sed 's/,$//') +- actual=$(echo $actual |sed 's/-o [^ ]*/-o '"$aopts"'/') ++ actual=$(echo $actual |sed -e 's/-o [^ ]*/-o '"$aopts"'/' -e 's/ ::1 / 127.0.0.1 /') + if [ "$expected" != "$actual" ]; then + echo ' '9mount "$@" + echo $expected' #expected' +@@ -48,6 +48,7 @@ + output=$(9mount -n "$@" 2>&1) && { + echo ' '9mount "$@" + echo $output' #should have failed!' ++ exit 1 + } + } + +@@ -59,3 +60,4 @@ + shouldfail unix!/tmp/9mount!qux $mtpt + shouldfail virtio!/dev/chan!bar $mtpt + shouldfail tcp!localhost!564!foo $mtpt ++exit 0 |