aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/083
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2019-10-17 15:31:38 +0200
committerMax Reitz <mreitz@redhat.com>2019-10-28 11:22:31 +0100
commita7552b52331a9eedbc92ba75b47fbacb9f0575f1 (patch)
tree35b748552741de6c40211e696d9532c73e68fece /tests/qemu-iotests/083
parent5759322ab0414d277e6f340b2487f37d0f1f3c1e (diff)
downloadqemu-a7552b52331a9eedbc92ba75b47fbacb9f0575f1.zip
qemu-a7552b52331a9eedbc92ba75b47fbacb9f0575f1.tar.gz
qemu-a7552b52331a9eedbc92ba75b47fbacb9f0575f1.tar.bz2
iotests/083: Create socket in $SOCK_DIR
Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-id: 20191017133155.5327-7-mreitz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/083')
-rwxr-xr-xtests/qemu-iotests/0836
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/qemu-iotests/083 b/tests/qemu-iotests/083
index b270550..10fdfc8 100755
--- a/tests/qemu-iotests/083
+++ b/tests/qemu-iotests/083
@@ -28,7 +28,7 @@ status=1 # failure is the default!
_cleanup()
{
- rm -f nbd.sock
+ rm -f "$SOCK_DIR/nbd.sock"
rm -f nbd-fault-injector.out
rm -f nbd-fault-injector.conf
}
@@ -80,10 +80,10 @@ EOF
if [ "$proto" = "tcp" ]; then
nbd_addr="127.0.0.1:0"
else
- nbd_addr="$TEST_DIR/nbd.sock"
+ nbd_addr="$SOCK_DIR/nbd.sock"
fi
- rm -f "$TEST_DIR/nbd.sock"
+ rm -f "$SOCK_DIR/nbd.sock"
echo > "$TEST_DIR/nbd-fault-injector.out"
$PYTHON nbd-fault-injector.py $extra_args "$nbd_addr" "$TEST_DIR/nbd-fault-injector.conf" >"$TEST_DIR/nbd-fault-injector.out" 2>&1 &