test/vhost: Fix path to integrity_vm.sh

Patch b6af628 while addressing Shellcheck 2088,
broke the pathing to integrity_vm.sh within VM.

Originally tilde was used within quotes so it didn't expand,
since cmd was executed as root the path was correct on VM.

After the change the path was changed to $HOME, making it
actually expand on the host system (not VM). Path was made
incorrect.

Since we already scp to /root/, it shouldn't
be an issue to use that path in explicitly when executing.

This fixes recent nightly run failures.

Change-Id: I2e0ac767cbf77a71841db260e602b568b1f510a1
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/470624
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Maciej Szwed <maciej.szwed@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Seth Howell <seth.howell@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Tomasz Zawadzki 2019-10-07 05:13:54 -04:00 committed by Jim Harris
parent 2976fbd2a3
commit 54a493de32

View File

@ -88,7 +88,7 @@ vm_wait_for_boot 300 0
# Run tests on VM # Run tests on VM
vm_scp 0 $testdir/integrity_vm.sh root@127.0.0.1:/root/integrity_vm.sh vm_scp 0 $testdir/integrity_vm.sh root@127.0.0.1:/root/integrity_vm.sh
vm_exec 0 "$HOME/integrity_vm.sh $ctrl_type \"$vm_fs\"" vm_exec 0 "/root/integrity_vm.sh $ctrl_type \"$vm_fs\""
notice "Shutting down virtual machine..." notice "Shutting down virtual machine..."
vm_shutdown_all vm_shutdown_all