smoke-test-run-unittests: adjust for RPM 4.20 build path change

RPM 4.20 changed the build directory naming scheme, which throws
off a lot of tests that make assumptions about it, like this
one. This adjusts the test to handle both older and newer RPM
by just noticing we're already in the directory with INSTALL in
it, and the directory we want to get to is under that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-07-31 14:55:52 -07:00
commit c5a8309fb2

View file

@ -55,7 +55,7 @@ rlJournalStart
rlRun "./configure" 0 "Configure"
rlRun "make" 0 "Compile"
fi
rlRun "cd $TmpDir/BUILD/*/test"
rlRun "cd test" 0 "Get into the test dir"
rlAssertExists 'xmas' 0 "Check for compiled program"
rlPhaseEnd