Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: tests/qdepends/
Date: Mon, 08 Apr 2019 09:02:28
Message-Id: 1554711500.2f1506290aa5ad0023bc204dd43f72a20bc1405e.grobian@gentoo
1 commit: 2f1506290aa5ad0023bc204dd43f72a20bc1405e
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 8 08:18:20 2019 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 8 08:18:20 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=2f150629
7
8 tests: try and get qdepends test to clear regarding order changes
9
10 Travis for some reason sorts differently, try forcing explict C locale,
11 even though Travis should be using that already.
12
13 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
14
15 tests/qdepends/dotest | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18 diff --git a/tests/qdepends/dotest b/tests/qdepends/dotest
19 index 41a4edd..ab5e2d3 100755
20 --- a/tests/qdepends/dotest
21 +++ b/tests/qdepends/dotest
22 @@ -26,7 +26,8 @@ test() {
23 while IFS= read -r line ; do
24 if [[ ${line} == *:* ]] ; then
25 pkg=${line%%:*}
26 - echo "${pkg}: $(echo ${line#*:} | xargs -n1 | sort | xargs)"
27 + env LC_ALL=C \
28 + echo "${pkg}: $(echo ${line#*:} | xargs -n1 | sort | xargs)"
29 else
30 echo "${line}"
31 fi