tests/cmake-testsuite-sanity: Adapt directory regex to allow RC versions

This commit is contained in:
Björn Esser 2023-09-28 01:45:56 +02:00
parent e9463cc03d
commit c12643cb55
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -57,7 +57,7 @@ rlJournalStart
rlRun "dnf builddep -y $TmpDir/SPECS/*.spec"
rlRun "su -c 'rpmbuild -D \"_topdir $TmpDir\" -bp $TmpDir/SPECS/*.spec &>$TmpDir/rpmbuild.log' $BUILD_USER"
rlRun "rlFileSubmit $TmpDir/rpmbuild.log"
rlRun "CMakeDir=`ls $TmpDir/BUILD | grep -E '^cmake-[0-9]+\.[0-9]+\.[0-9]+$' | tail -n 1`"
rlRun "CMakeDir=`ls $TmpDir/BUILD | grep -E '^cmake-[0-9]+(\.[0-9]+)+(-rc[0-9]+)?$' | tail -n 1`"
rlRun "cd $TmpDir/BUILD/$CMakeDir"
rlRun "su -c './bootstrap &>$TmpDir/bootstrap.log' $BUILD_USER"
rlRun "rlFileSubmit $TmpDir/bootstrap.log"