summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtests.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index 1ee068f..b880612 100755
--- a/tests.sh
+++ b/tests.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+set -o physical
+
# The temporary directory that will hold our test data
TMP="$(mktemp -d "${TMPDIR:-/tmp}"/bfs.XXXXXXXXXX)"
chown "$(id -u)":"$(id -g)" "$TMP"
@@ -377,7 +379,8 @@ function test_0063() {
}
function test_0064() {
- local OFFSET="$((${#TMP} + 2))"
+ local TMP_REAL="$(cd "$TMP" && pwd)"
+ local OFFSET="$((${#TMP_REAL} + 2))"
bfs_diff basic -execdir bash -c "pwd | cut -b$OFFSET-" ';'
}