summaryrefslogtreecommitdiff
path: root/test/integration/test-policy-pinning
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2022-01-03 11:31:15 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2022-02-02 13:18:09 +0100
commit71ea488ca53c7bde176655623a829c82e32e5a85 (patch)
tree9725b5b7cd23284cd3606a687437d6003153d3ef /test/integration/test-policy-pinning
parent794cd4a23b7cb8c0e195f8264d372203cccec8ca (diff)
Remove useless use of awk
I have no idea what I was thinking 12 years ago. Gbp-Dch: Ignore
Diffstat (limited to 'test/integration/test-policy-pinning')
-rwxr-xr-xtest/integration/test-policy-pinning12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/integration/test-policy-pinning b/test/integration/test-policy-pinning
index 23e90bab6..6cb89ed38 100755
--- a/test/integration/test-policy-pinning
+++ b/test/integration/test-policy-pinning
@@ -18,9 +18,9 @@ testequalpolicy() {
local AP="$2"
shift 2
testsuccessequal "Package files:
- $(echo "$SP" | awk '{ printf("%3s\n",$0) }') ${STATUS}
+ $(printf '%3s' "$SP") ${STATUS}
release a=now
- $(echo "$AP" | awk '{ printf("%3s\n",$0) }') file:${APTARCHIVE} Packages
+ $(printf '%3s' "$AP") file:${APTARCHIVE} Packages
release c=
Pinned packages:" aptcache policy "$@"
}
@@ -110,11 +110,11 @@ testequalpolicycoolstuff() {
local BPO2ARCHIVE=""
if [ ! "$7" = "2.0~bpo2" ]; then
BPO1PIN="$AB"
- BPO1ARCHIVE=" $(echo "$AB" | awk '{ printf("%3s\n",$0) }') file:${APTARCHIVE} backports/main all Packages"
+ BPO1ARCHIVE=" $(printf '%3s' "$AB") file:${APTARCHIVE} backports/main all Packages"
else
BPO2ARCHIVE="
2.0~bpo2 $AB
- $(echo "$AB" | awk '{ printf("%3s\n",$0) }') file:${APTARCHIVE} backports/main all Packages"
+ $(printf '%3s' "$AB") file:${APTARCHIVE} backports/main all Packages"
SB="$(echo "$SB" | tail -n 1)"
shift
fi
@@ -126,7 +126,7 @@ testequalpolicycoolstuff() {
$IB 2.0~bpo1 $PB
${BPO1ARCHIVE}$SB
$IS 1.0 $AS
- $(echo "$AS" | awk '{ printf("%3s\n",$0) }') file:${APTARCHIVE} stable/main all Packages$SS" \
+ $(printf '%3s' "$AS") file:${APTARCHIVE} stable/main all Packages$SS" \
aptcache policy coolstuff -o Policy=${INSTALLED}-${CANDIDATE}-${AB}-${AS}-${PB} $*
}
@@ -268,7 +268,7 @@ testequalpolicycoolstuff "2.0~bpo1" "2.0~bpo2" 100 990 100 "" "2.0~bpo2" -o Test
testequalpolicycoolstuff "2.0~bpo1" "2.0~bpo2" 990 500 100 "" "2.0~bpo2" -o Test=ButAutomaticUpgrades -t backports
-tmppath=$(readlink -f .)
+tmppath="$(readlink -f .)"
# Check 16-bit integers
echo "Package: coolstuff