X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=tests%2Frun-test;h=843585a579014f122957ebde50197aab32d97ba7;hp=a1fd7c5f87197a757559f06797d51951f7920f9f;hb=aaaaeeb0ebf8487db9c4cc45f1ece57503431983;hpb=ee98274cfd9e9383214a9792c01fdfe4f22ef677 diff --git a/tests/run-test b/tests/run-test index a1fd7c5..843585a 100755 --- a/tests/run-test +++ b/tests/run-test @@ -34,6 +34,9 @@ TMP_DIR="$(readlink -f "$(mktemp -d cumulus-tests.XXXXXX)")" # Command to use for running memory leak tests. VALGRIND="valgrind --tool=memcheck --leak-check=full --log-file=$TMP_DIR/valgrind.log" +# Python interpreter to test with. +PYTHON="${PYTHON:-python2}" + log_action() { echo echo "================================================================" @@ -68,8 +71,6 @@ cp -a "$BIN_DIR/third_party" "$TREE" log_action "Running second backup..." sleep 5 -BACKUP_DIR="$TMP_DIR/backups" -mkdir "$BACKUP_DIR" $VALGRIND "$BIN_DIR"/cumulus --dest="$BACKUP_DIR" --localdb="$LOCALDB" \ --scheme=test -v "$TREE" @@ -82,5 +83,6 @@ for s in $snapshots; do i=$((i + 1)) dest="$TMP_DIR/restore-$i" mkdir -p "$dest" - "$BIN_DIR"/cumulus-util --store="$BACKUP_DIR" restore-snapshot $s "$dest" + "$PYTHON" "$BIN_DIR"/cumulus-util --store="$BACKUP_DIR" \ + restore-snapshot $s "$dest" done