From: Prarit Bhargava <prarit(a)redhat.com>
self-test: Fixup dist release test
The dist release test expects *one* BUILD value. With the latest changes
it is possible that two are output.
Fix the dist release test to check only one BUILD value.
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/redhat/self-test/2001-dist-release.bats
b/redhat/self-test/2001-dist-release.bats
index blahblah..blahblah 100644
--- a/redhat/self-test/2001-dist-release.bats
+++ b/redhat/self-test/2001-dist-release.bats
@@ -33,7 +33,7 @@
title=${title##*\[redhat\] }
# Strip off ...kernel-VV.PP.SS-:
pkgrelease=${title##*kernel-+([5-9]).+([0-9]).+([0-9])-}
- build=$(BUILD= DIST=.fc33 make dist-dump-variables | grep -E "^BUILD=" |
cut -d"=" -f2 | xargs)
+ build=$(BUILD= DIST=.fc33 make dist-dump-variables | grep -m 1 -E "^BUILD="
| cut -d"=" -f2 | xargs)
((build--))
echo "pkgrelease=$pkgrelease"
echo "build=$build"
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1800