[Qemu-devel] [PATCH 8/9] iotests: Filter SSH paths

Max Reitz posted 9 patches 6 years, 9 months ago
There is a newer version of this series
[Qemu-devel] [PATCH 8/9] iotests: Filter SSH paths
Posted by Max Reitz 6 years, 9 months ago
8908b253c4ad5f8874c8d13abec169c696a5cd32 has implemented filtering of
remote paths for NFS, but forgot SSH.  This patch takes care of that.

Signed-off-by: Max Reitz <mreitz@redhat.com>
---
 tests/qemu-iotests/common.rc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
index e15e7a7c8e..09a27f02d0 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/common.rc
@@ -145,6 +145,7 @@ else
         TEST_IMG="nbd:127.0.0.1:10810"
     elif [ "$IMGPROTO" = "ssh" ]; then
         TEST_IMG_FILE=$TEST_DIR/t.$IMGFMT
+        REMOTE_TEST_DIR="ssh://127.0.0.1$TEST_DIR"
         TEST_IMG="ssh://127.0.0.1$TEST_IMG_FILE"
     elif [ "$IMGPROTO" = "nfs" ]; then
         TEST_IMG_FILE=$TEST_DIR/t.$IMGFMT
-- 
2.20.1


Re: [Qemu-devel] [PATCH 8/9] iotests: Filter SSH paths
Posted by John Snow 6 years, 9 months ago

On 1/23/19 9:46 AM, Max Reitz wrote:
> 8908b253c4ad5f8874c8d13abec169c696a5cd32 has implemented filtering of
> remote paths for NFS, but forgot SSH.  This patch takes care of that.
> 
> Signed-off-by: Max Reitz <mreitz@redhat.com>
> ---
>  tests/qemu-iotests/common.rc | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
> index e15e7a7c8e..09a27f02d0 100644
> --- a/tests/qemu-iotests/common.rc
> +++ b/tests/qemu-iotests/common.rc
> @@ -145,6 +145,7 @@ else
>          TEST_IMG="nbd:127.0.0.1:10810"
>      elif [ "$IMGPROTO" = "ssh" ]; then
>          TEST_IMG_FILE=$TEST_DIR/t.$IMGFMT
> +        REMOTE_TEST_DIR="ssh://127.0.0.1$TEST_DIR"
>          TEST_IMG="ssh://127.0.0.1$TEST_IMG_FILE"
>      elif [ "$IMGPROTO" = "nfs" ]; then
>          TEST_IMG_FILE=$TEST_DIR/t.$IMGFMT
> 

Reviewed-by: John Snow <jsnow@redhat.com>