diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-09-05 13:30:50 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-09-11 15:43:37 -0400 |
commit | 4f556e1b9896b77e7b0f74afddad5fd8c1892641 (patch) | |
tree | 0c513cdd29c0aca5f45828e901e70c198a5c61f7 /test | |
parent | 8443cad920a59918069dbee3891b4b9595c528a3 (diff) |
test: set LANG=C when parsing the output
Diffstat (limited to 'test')
-rw-r--r-- | test/aur-test.sh | 2 | ||||
-rw-r--r-- | test/is_built-test.sh | 2 | ||||
-rw-r--r-- | test/lib-blacklist-test.sh | 6 | ||||
-rw-r--r-- | test/librechroot-test.sh | 4 | ||||
-rw-r--r-- | test/libremakepkg-test.sh | 2 | ||||
-rw-r--r-- | test/librestage-test.sh | 2 | ||||
-rw-r--r-- | test/pkgbuild-check-nonfree-test.sh | 2 |
7 files changed, 10 insertions, 10 deletions
diff --git a/test/aur-test.sh b/test/aur-test.sh index 1cbcc57..1bdd2e4 100644 --- a/test/aur-test.sh +++ b/test/aur-test.sh @@ -12,7 +12,7 @@ after() { } it_displays_help() { - aur -h >$tmpdir/stdout 2>$tmpdir/stderr + LANG=C aur -h >$tmpdir/stdout 2>$tmpdir/stderr [[ "$(sed 1q $tmpdir/stdout)" =~ Usage:.* ]] [[ -z "$(cat $tmpdir/stderr)" ]] diff --git a/test/is_built-test.sh b/test/is_built-test.sh index 04b17cd..1bea0dc 100644 --- a/test/is_built-test.sh +++ b/test/is_built-test.sh @@ -12,7 +12,7 @@ after() { } it_displays_help() { - is_built -h >$tmpdir/stdout 2>$tmpdir/stderr + LANG=C is_built -h >$tmpdir/stdout 2>$tmpdir/stderr [[ "$(sed 1q $tmpdir/stdout)" =~ Usage:.* ]] [[ -z "$(cat $tmpdir/stderr)" ]] diff --git a/test/lib-blacklist-test.sh b/test/lib-blacklist-test.sh index 049a2a7..9c8e84d 100644 --- a/test/lib-blacklist-test.sh +++ b/test/lib-blacklist-test.sh @@ -110,7 +110,7 @@ it_downloads_the_blacklist_repeatedly() { } it_displays_help_and_fails_with_no_args() { - libreblacklist >$tmpdir/stdout 2>$tmpdir/stderr || stat=$? + LANG=C libreblacklist >$tmpdir/stdout 2>$tmpdir/stderr || stat=$? [[ $stat != 0 ]] [[ -z "$(cat $tmpdir/stdout)" ]] @@ -118,14 +118,14 @@ it_displays_help_and_fails_with_no_args() { } it_displays_help_when_given_h() { - libreblacklist -h >$tmpdir/stdout 2>$tmpdir/stderr + LANG=C libreblacklist -h >$tmpdir/stdout 2>$tmpdir/stderr [[ "$(sed 1q $tmpdir/stdout)" =~ 'Usage: libreblacklist ' ]] [[ -z "$(cat $tmpdir/stderr)" ]] } it_displays_help_when_given_h_cat() { - libreblacklist -h cat >$tmpdir/stdout 2>$tmpdir/stderr + LANG=C libreblacklist -h cat >$tmpdir/stdout 2>$tmpdir/stderr [[ "$(sed 1q $tmpdir/stdout)" =~ 'Usage: libreblacklist cat' ]] [[ -z "$(cat $tmpdir/stderr)" ]] 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)" ]] diff --git a/test/libremakepkg-test.sh b/test/libremakepkg-test.sh index 90cca0b..ab398bc 100644 --- a/test/libremakepkg-test.sh +++ b/test/libremakepkg-test.sh @@ -44,7 +44,7 @@ it_handles_PKGDEST_not_existing() { it_displays_help_as_normal_user() { rm -rf "$XDG_CONFIG_HOME" - libremakepkg -h >$tmpdir/stdout 2>$tmpdir/stderr + LANG=C libremakepkg -h >$tmpdir/stdout 2>$tmpdir/stderr [[ "$(sed 1q $tmpdir/stdout)" =~ Usage:.* ]] [[ -z "$(cat $tmpdir/stderr)" ]] diff --git a/test/librestage-test.sh b/test/librestage-test.sh index 016b576..c5097a2 100644 --- a/test/librestage-test.sh +++ b/test/librestage-test.sh @@ -23,7 +23,7 @@ after() { it_displays_usage_text() { rm -rf "$XDG_CONFIG_HOME" - librestage -h >$tmpdir/stdout 2>$tmpdir/stderr + LANG=C librestage -h >$tmpdir/stdout 2>$tmpdir/stderr [[ "$(sed 1q "$tmpdir/stdout")" =~ Usage:.* ]] [[ -z "$(cat "$tmpdir/stderr")" ]] diff --git a/test/pkgbuild-check-nonfree-test.sh b/test/pkgbuild-check-nonfree-test.sh index dd03aab..d547e24 100644 --- a/test/pkgbuild-check-nonfree-test.sh +++ b/test/pkgbuild-check-nonfree-test.sh @@ -26,7 +26,7 @@ after() { it_displays_usage_text() { # This test seems silly, but it makes sure that it is executable, # syntactically correct, and loading libraries works. - $pcn -h >$tmpdir/stdout 2>$tmpdir/stderr + LANG=C $pcn -h >$tmpdir/stdout 2>$tmpdir/stderr stat=$? [[ "$(sed 1q $tmpdir/stdout)" =~ Usage:.* ]] |