From e07cf18843af30468e201af73935b8ddc31df6b1 Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Thu, 18 Jul 2024 16:23:07 +1200 Subject: [PATCH] selftest: Fix test failing when performing runtest.sh A failing is noticed: :: [ 07:07:19 ] :: [ BEGIN ] :: Running 'cd /tmp/tmp.i5XmMNXNbE/BUILD/irqbalance-*/' /usr/share/beakerlib/testing.sh: line 896: cd: /tmp/tmp.i5XmMNXNbE/BUILD/irqbalance-*/: No such file or directory The reason is there are multiple dirs been selected by "irqbalance-*": [root@dell-r640-008 BUILD]# ls irqbalance-1.9.4 irqbalance-1.9.4-SPECPARTS This patch will unselect the *-SPECPARTS dir. Also adding the missing package systemd-devel dependency. Signed-off-by: Tao Liu --- tests/selftest/runtest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/selftest/runtest.sh b/tests/selftest/runtest.sh index 07d9639..f94c2eb 100755 --- a/tests/selftest/runtest.sh +++ b/tests/selftest/runtest.sh @@ -31,7 +31,7 @@ . /usr/share/beakerlib/beakerlib.sh || exit 1 PACKAGE="irqbalance" -PACKAGES="irqbalance automake autoconf libtool libcap-ng-devel glib2-devel pkgconf systemd ncurses-devel numactl-devel" +PACKAGES="irqbalance automake autoconf libtool libcap-ng-devel glib2-devel pkgconf systemd ncurses-devel numactl-devel systemd-devel" UPSTREAMPKG="irqbalance-*" BUILDLOG=`mktemp` TESTLOG=`mktemp` @@ -56,7 +56,7 @@ rlJournalStart echo "+ Buildlog:" tail -n 100 $BUILDLOG rlRun "pushd ." - rlRun "cd $TESTDIR" + rlRun "cd $(ls -d $TESTDIR | grep -v SPECPARTS)" rlRun "make check &> $TESTLOG" if [ $? -eq 0 ] then