# 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 "================================================================"
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"
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