diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2019-09-03 16:50:24 +0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-09-10 08:58:43 +0200 |
commit | d885ac33cfc30a14e0f68c227865910257fd2c44 (patch) | |
tree | 8914506d9f7df04b11f11e705a4e80d107c41512 /tests/qemu-iotests/232 | |
parent | cb73747e1a47b93d3dfdc3f769c576b053916938 (diff) | |
download | qemu-d885ac33cfc30a14e0f68c227865910257fd2c44.zip qemu-d885ac33cfc30a14e0f68c227865910257fd2c44.tar.gz qemu-d885ac33cfc30a14e0f68c227865910257fd2c44.tar.bz2 |
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>
Diffstat (limited to 'tests/qemu-iotests/232')
-rwxr-xr-x | tests/qemu-iotests/232 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/qemu-iotests/232 b/tests/qemu-iotests/232 index 2063f78..65b0e42 100755 --- a/tests/qemu-iotests/232 +++ b/tests/qemu-iotests/232 @@ -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 |