From 3fe4b05b47a68fe83c15c09ba1432457808c9796 Mon Sep 17 00:00:00 2001 From: Pawel Niedzwiecki Date: Wed, 7 Mar 2018 19:46:11 +0100 Subject: [PATCH] test/common: Enable script debugging in readonly and pmem test set -x flag in pmem and readonly tests for easier debugging Change-Id: I006d57bb770427a39b8788cfb1def44b75f47e47 Signed-off-by: Pawel Niedzwiecki Reviewed-on: https://review.gerrithub.io/403066 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: Jim Harris --- autotest.sh | 2 +- test/vhost/readonly/delete_partition_vm.sh | 2 +- test/vhost/readonly/disabled_readonly_vm.sh | 2 +- test/vhost/readonly/enabled_readonly_vm.sh | 1 + test/vhost/spdk_vhost.sh | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/autotest.sh b/autotest.sh index 324e4c017..030273be9 100755 --- a/autotest.sh +++ b/autotest.sh @@ -202,7 +202,7 @@ if [ $SPDK_TEST_VHOST_INIT -eq 1 ]; then fi if [ $SPDK_TEST_NVML -eq 1 ]; then - run_test ./test/pmem/pmem.sh + run_test ./test/pmem/pmem.sh -x fi timing_enter cleanup diff --git a/test/vhost/readonly/delete_partition_vm.sh b/test/vhost/readonly/delete_partition_vm.sh index 989febb7a..182308967 100755 --- a/test/vhost/readonly/delete_partition_vm.sh +++ b/test/vhost/readonly/delete_partition_vm.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -set -e +set -xe BASE_DIR=$(readlink -f $(dirname $0)) disk_name="vda" diff --git a/test/vhost/readonly/disabled_readonly_vm.sh b/test/vhost/readonly/disabled_readonly_vm.sh index b2e49fccf..bd2024331 100755 --- a/test/vhost/readonly/disabled_readonly_vm.sh +++ b/test/vhost/readonly/disabled_readonly_vm.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -set -e +set -xe BASE_DIR=$(readlink -f $(dirname $0)) disk_name="vda" diff --git a/test/vhost/readonly/enabled_readonly_vm.sh b/test/vhost/readonly/enabled_readonly_vm.sh index bc9a6c9d9..79cf1ae52 100755 --- a/test/vhost/readonly/enabled_readonly_vm.sh +++ b/test/vhost/readonly/enabled_readonly_vm.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash +set -x BASE_DIR=$(readlink -f $(dirname $0)) disk_name="vda" diff --git a/test/vhost/spdk_vhost.sh b/test/vhost/spdk_vhost.sh index 7a87e3eda..867a3299b 100755 --- a/test/vhost/spdk_vhost.sh +++ b/test/vhost/spdk_vhost.sh @@ -194,7 +194,7 @@ case $1 in ;; -ro|--readonly) echo 'Running readonly tests suite...' - $WORKDIR/readonly/readonly.sh --vm_image=$VM_IMAGE --disk=Nvme0n1 + $WORKDIR/readonly/readonly.sh --vm_image=$VM_IMAGE --disk=Nvme0n1 -x report_test_completion "vhost_readonly" ;; *)