Skip to content

Commit

Permalink
e2e: improvements
Browse files Browse the repository at this point in the history
- use cat for pager
- add option to keep temp dir
- log sqlite3 path
  • Loading branch information
rcoup committed May 30, 2024
1 parent f668bb8 commit 6c04b44
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/scripts/e2e-1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ function do_cleanup {
if [ -f "$KART_HELPER_LOG" ]; then
cat "$KART_HELPER_LOG"
fi
rm -rf "$TMP_PATH"
if [ -z "${NO_CLEANUP-}" ]; then
rm -rf "$TMP_PATH"
fi
}
trap do_cleanup EXIT

Expand All @@ -35,10 +37,14 @@ if [ "$(uname -s)" == "Linux" ]; then
cp -a /etc/skel/. "$HOME/"
fi
export SHELL=/bin/bash
export PAGER=cat

KART_PATH=$(dirname "$(realpath "$(command -v kart)")")
echo "Kart is at: ${KART_PATH}"

SQLITE3_PATH=$(dirname "$(realpath "$(command -v sqlite3)")")
echo "sqlite3 is at: ${SQLITE3_PATH}"

SPATIALITE_PATH=$(echo 'from kart import spatialite_path; print(spatialite_path)' | kart --post-mortem 2>/dev/null | grep spatialite | awk '{print $2}')
echo "Spatialite is at: ${SPATIALITE_PATH}"

Expand Down

0 comments on commit 6c04b44

Please sign in to comment.