summaryrefslogtreecommitdiff
path: root/test/libremakepkg-test.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-03 21:05:29 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-05 20:01:07 -0600
commit15310607aea5ebd47f7133ec638a10dcbd9712e6 (patch)
tree33ad7e8de2eb9ca5cb65f88e924394009faed708 /test/libremakepkg-test.sh
parent949014bc2dec8757d4a01af1e1d3dc7f394fe9a5 (diff)
unit tests: make XDG_CONFIG_HOME not exist when checking usage text
Diffstat (limited to 'test/libremakepkg-test.sh')
-rw-r--r--test/libremakepkg-test.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/libremakepkg-test.sh b/test/libremakepkg-test.sh
index b014da7..0cf3788 100644
--- a/test/libremakepkg-test.sh
+++ b/test/libremakepkg-test.sh
@@ -22,6 +22,7 @@ it_builds_a_trivial_package() {
}
it_displays_help_as_normal_user() {
+ rm -rf "$XDG_CONFIG_HOME"
libremakepkg -h >$tmpdir/stdout 2>$tmpdir/stderr
[[ "$(sed 1q $tmpdir/stdout)" =~ Usage:.* ]]