]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - tools/test-github.sh
ci: run the integration tests on more distributions
[thirdparty/dracut.git] / tools / test-github.sh
similarity index 90%
rename from tools/fedora-test-github.sh
rename to tools/test-github.sh
index f9c934fb8009ed0b26900730779ed0732b18f4d5..eab59dcca1a4754325c6ac7382339f6c67837fdf 100755 (executable)
@@ -34,9 +34,13 @@ else
 
     cd test
 
+    # shellcheck disable=SC2012
     time LOGTEE_TIMEOUT_MS=590000 make \
         enable_documentation=$make_docs \
-        KVERSION="$(rpm -qa kernel --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -rn | head -1)" \
+        KVERSION="$(
+            cd /lib/modules
+            ls -1 | tail -1
+        )" \
         DRACUT_NO_XATTR=1 \
         TEST_RUN_ID="$RUN_ID" \
         ${TESTS:+TESTS="$TESTS"} \