mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-30 23:10:38 +00:00
iotests: skip 232 when run tests as root
chmod a-w don't help under root, so skip the test in such case. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
cb73747e1a
commit
d885ac33cf
@ -74,6 +74,12 @@ if [ -n "$TEST_IMG_FILE" ]; then
|
||||
TEST_IMG=$TEST_IMG_FILE
|
||||
fi
|
||||
|
||||
chmod a-w $TEST_IMG
|
||||
(echo test > $TEST_IMG) 2>/dev/null && \
|
||||
_notrun "Readonly attribute is ignored, probably you run this test as" \
|
||||
"root, which is unsupported."
|
||||
chmod a+w $TEST_IMG
|
||||
|
||||
echo
|
||||
echo "=== -drive with read-write image: read-only/auto-read-only combinations ==="
|
||||
echo
|
||||
|
Loading…
Reference in New Issue
Block a user