Clone pyvmomi samples in the correct directory
(cherry picked from commit e0c8cdc5a8
)
This commit is contained in:
parent
a8ff02113b
commit
41aa84ba04
@ -55,11 +55,13 @@ rlJournalStart
|
|||||||
rlRun -t -c "pip3 install pyvmomi"
|
rlRun -t -c "pip3 install pyvmomi"
|
||||||
|
|
||||||
TMP_DIR=`mktemp -d /tmp/composer-vmware.XXXXX`
|
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
|
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
|
pushd $SAMPLES && git checkout composer_testing && popd
|
||||||
fi
|
fi
|
||||||
|
SAMPLES="$SAMPLES/samples"
|
||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
|
|
||||||
rlPhaseStartTest "compose start"
|
rlPhaseStartTest "compose start"
|
||||||
|
Loading…
Reference in New Issue
Block a user