summaryrefslogtreecommitdiff
path: root/test/integration/framework
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-06-09 20:41:58 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2016-06-10 10:48:25 +0200
commitbdc42211700ef0f6f40e4ef3f362e52d684d70fb (patch)
treeac3f4bbe8748cccb2561dee67dcb21700c0e6fe3 /test/integration/framework
parent554bc997e4f619c72f883fd68cc896df96de58e5 (diff)
do not hang on piped input in PipedFileFdPrivate
This effects only compressors configured on the fly (rather then the inbuilt ones as they use a library).
Diffstat (limited to 'test/integration/framework')
-rw-r--r--test/integration/framework8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/integration/framework b/test/integration/framework
index b7bee8a57..3f7101170 100644
--- a/test/integration/framework
+++ b/test/integration/framework
@@ -539,6 +539,10 @@ EOF
testempty --nomsg gcc -Wall -Wextra -fPIC -shared -o noopchroot.so noopchroot.c -ldl
}
configcompression() {
+ if [ "$1" = 'ALL' ]; then
+ configcompression '.' $(aptconfig dump APT::Compressor --format '%t %v%n' | sed -n 's#^Extension \.\(.*\)$#\1#p')
+ return
+ fi
local CMD='apthelper cat-file -C'
while [ -n "$1" ]; do
case "$1" in
@@ -963,7 +967,7 @@ buildaptarchivefromfiles() {
}
compressfile() {
- cat "${TMPWORKINGDIRECTORY}/rootdir/etc/testcase-compressor.conf" | while read compressor extension command; do
+ while read compressor extension command; do
if [ "$compressor" = '.' ]; then
if [ -n "$2" ]; then
touch -d "$2" "$1"
@@ -974,7 +978,7 @@ compressfile() {
if [ -n "$2" ]; then
touch -d "$2" "${1}.${extension}"
fi
- done
+ done < "${TMPWORKINGDIRECTORY}/rootdir/etc/testcase-compressor.conf"
}
# can be overridden by testcases for their pleasure