From 41aa84ba04dff850db0f2096da60f0c3c8b27c78 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Wed, 5 Dec 2018 10:34:31 +0200 Subject: [PATCH] Clone pyvmomi samples in the correct directory (cherry picked from commit e0c8cdc5a8236876a7d78852c1f300d4fbabc6f9) --- tests/cli/test_build_and_deploy_vmware.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/cli/test_build_and_deploy_vmware.sh b/tests/cli/test_build_and_deploy_vmware.sh index d79e7fd9..dbb788c0 100755 --- a/tests/cli/test_build_and_deploy_vmware.sh +++ b/tests/cli/test_build_and_deploy_vmware.sh @@ -55,11 +55,13 @@ rlJournalStart rlRun -t -c "pip3 install pyvmomi" TMP_DIR=`mktemp -d /tmp/composer-vmware.XXXXX` - SAMPLES="$TMP_DIR/pyvmomi-community-samples/samples/" + SAMPLES="$TMP_DIR/pyvmomi-community-samples" if [ ! -d "$SAMPLES" ]; then - rlRun -t -c "git clone https://github.com/weldr/pyvmomi-community-samples $TMP_DIR" + rlRun -t -c "git clone https://github.com/weldr/pyvmomi-community-samples $SAMPLES" + rlRun -t -v "ls -lR $TMP_DIR" pushd $SAMPLES && git checkout composer_testing && popd fi + SAMPLES="$SAMPLES/samples" rlPhaseEnd rlPhaseStartTest "compose start"