Clone pyvmomi samples in the correct directory

This commit is contained in:
Alexander Todorov 2018-12-05 10:34:31 +02:00 committed by Alexander Todorov
parent 8f430be2a6
commit e0c8cdc5a8
1 changed files with 4 additions and 2 deletions

View File

@ -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"