From 31856bd4c5c85316959df8bde1a4e33af2e671d2 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Fri, 26 Jan 2024 16:41:47 +0100 Subject: [PATCH] node-print: fix tests --- node-print/APKBUILD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/node-print/APKBUILD b/node-print/APKBUILD index 757eb01..c43a23f 100644 --- a/node-print/APKBUILD +++ b/node-print/APKBUILD @@ -19,9 +19,10 @@ check() { node --experimental-test-coverage --test > output.txt # ensure coverage - local cov_lines="$(grep -F index.js output.txt | cut -d' ' -f4 | cut -d. -f1)" + local results="$(grep -F index.js output.txt)" + local cov_lines="$(echo $results | cut -d' ' -f4 | cut -d. -f1)" [ "$cov_lines" -gt 90 ] - local cov_branches="$(grep -F index.js output.txt | cut -d' ' -f6 | cut -d. -f1)" + local cov_branches="$(echo $results | cut -d' ' -f6 | cut -d. -f1)" [ "$cov_branches" -gt 90 ] }