From c5a8309fb26cc81de33676bb3c3babbd79c507a8 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 31 Jul 2024 14:55:52 -0700 Subject: [PATCH] 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 --- Sanity/smoke-test-run-unittests/runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sanity/smoke-test-run-unittests/runtest.sh b/Sanity/smoke-test-run-unittests/runtest.sh index 9f2a631..c408e9f 100755 --- a/Sanity/smoke-test-run-unittests/runtest.sh +++ b/Sanity/smoke-test-run-unittests/runtest.sh @@ -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