testsuite: Fix locating the source root

This commit is contained in:
Martin Cermak 2024-10-08 19:03:05 +02:00
commit 2c3d81d5be

View file

@ -14,7 +14,7 @@ rlJournalStart
rlRun "rpm --define='_topdir $TMP' -Uhv *debugedit*.src.rpm"
rlRun "yum-builddep --enablerepo=\* -y $TMP/SPECS/debugedit.spec"
rlRun "rpmbuild --define='_topdir $TMP' -bc SPECS/debugedit.spec"
rlRun "b=$(find BUILD -maxdepth 1 -mindepth 1 -type d ! -name '*-SPECPARTS')"
rlRun "b=$(dirname `find . -name Makefile | head -1`)"
# shellcheck disable=SC2154
rlRun "pushd $b"