From: Prarit Bhargava <[email protected]>

self-test: Add test for DIST=".eln"

There's never a dist-git commit with eln data so there's no self-test data
generated for DIST=".eln".  To avoid any future errors with DIST=".eln",
add a test to verify that it results in BUILD_TARGET value being set to
"eln".

Signed-off-by: Prarit Bhargava <[email protected]>

diff --git a/redhat/self-test/1005-dist-dump-variables.bats 
b/redhat/self-test/1005-dist-dump-variables.bats
index blahblah..blahblah 100644
--- a/redhat/self-test/1005-dist-dump-variables.bats
+++ b/redhat/self-test/1005-dist-dump-variables.bats
@@ -16,3 +16,10 @@ load test-lib.bash
        [ -d $BATS_TMPDIR ] && rm -rf $BATS_TMPDIR/data
        check_status
 }
+
+# Purpose: This test verifies the BUILD_TARGET value is "eln" for DIST=".eln".
+@test "eln BUILD_TARGET test" {
+       bt=$(make DIST=".eln" dist-dump-variables | grep "BUILD_TARGET=" | cut 
-d"=" -f2)
+       run [ "$bt" != "eln" ]
+       check_status
+}

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1919
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to