summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-10-04 14:49:37 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-10-04 14:49:37 -0400
commitafd5e9690ec4543eb49143a4e6ce0a4d76f63378 (patch)
treecd9411567623a22b0ce55ad84332110f47d4e51b /test
parent9dd19a89b3f66257fe42b20f40a8f6ce59ed77f6 (diff)
Fix tests for librerelease
Diffstat (limited to 'test')
-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"
+}