summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/librerelease-test.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/librerelease-test.sh b/test/librerelease-test.sh
index 0fc1089..c102ecc 100644
--- a/test/librerelease-test.sh
+++ b/test/librerelease-test.sh
@@ -29,11 +29,13 @@ it_displays_usage_text() {
}
it_lists_all_files() {
+ WORKDIR="$tmpdir/workdir"
mkdir -p "$WORKDIR/staging/repo1" "$WORKDIR/staging/repo2"
touch \
"$WORKDIR/staging/repo1/file1" \
"$WORKDIR/staging/repo1/file2" \
"$WORKDIR/staging/repo2/file with spaces"
+ unset WORKDIR
LANG=C librerelease -l &>"$tmpdir/list"
cat > "$tmpdir/list-correct" <<EOF
@@ -45,4 +47,4 @@ file with spaces
EOF
diff "$tmpdir/list-correct" "$tmpdir/list"
- empty "$tmpdir/list"
+}