summaryrefslogtreecommitdiff
path: root/test/librechroot-test.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-09-05 13:30:50 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-09-11 15:43:37 -0400
commit4f556e1b9896b77e7b0f74afddad5fd8c1892641 (patch)
tree0c513cdd29c0aca5f45828e901e70c198a5c61f7 /test/librechroot-test.sh
parent8443cad920a59918069dbee3891b4b9595c528a3 (diff)
test: set LANG=C when parsing the output
Diffstat (limited to 'test/librechroot-test.sh')
-rw-r--r--test/librechroot-test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/librechroot-test.sh b/test/librechroot-test.sh
index 8545380..37c717a 100644
--- a/test/librechroot-test.sh
+++ b/test/librechroot-test.sh
@@ -34,7 +34,7 @@ it_cleans_the_local_repo_correctly() {
it_displays_help_as_normal_user() {
rm -rf "$XDG_CONFIG_HOME"
- librechroot help >$tmpdir/stdout 2>$tmpdir/stderr
+ LANG=C librechroot help >$tmpdir/stdout 2>$tmpdir/stderr
[[ "$(sed 1q $tmpdir/stdout)" =~ Usage:.* ]]
[[ -z "$(cat $tmpdir/stderr)" ]]
@@ -49,7 +49,7 @@ it_otherwise_fails_as_normal_user() {
}
it_displays_help_and_fails_with_0_args() {
- librechroot >$tmpdir/stdout 2>$tmpdir/stderr || stat=$?
+ LANG=C librechroot >$tmpdir/stdout 2>$tmpdir/stderr || stat=$?
[[ $stat != 0 ]]
[[ -z "$(cat $tmpdir/stdout)" ]]