Skip to content

Commit 9ee3344

Browse files
committed
tests: simplify the pkgconfig test script
1 parent c489093 commit 9ee3344

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/pkgconfig.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,14 @@ _pkgconfig()
5555
)}
5656

5757
_pkgconfig_do()
58-
{(
59-
ret=0
58+
{
6059
caption="$1"
6160
options="$2"
6261
packages="$3"
6362

6463
$ECHO -n "$caption"
65-
output=$($PKGCONFIG $options "$packages")
66-
ret=$?
67-
echo "$output"
68-
return $ret
69-
)}
64+
PKG_CONFIG_PATH="$PKG_CONFIG_PATH" $PKGCONFIG $options "$packages"
65+
}
7066

7167

7268
#usage

0 commit comments

Comments
 (0)