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 <ltao@redhat.com>
This commit is contained in:
parent
c5ee581419
commit
e07cf18843
@ -31,7 +31,7 @@
|
|||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="irqbalance"
|
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-*"
|
UPSTREAMPKG="irqbalance-*"
|
||||||
BUILDLOG=`mktemp`
|
BUILDLOG=`mktemp`
|
||||||
TESTLOG=`mktemp`
|
TESTLOG=`mktemp`
|
||||||
@ -56,7 +56,7 @@ rlJournalStart
|
|||||||
echo "+ Buildlog:"
|
echo "+ Buildlog:"
|
||||||
tail -n 100 $BUILDLOG
|
tail -n 100 $BUILDLOG
|
||||||
rlRun "pushd ."
|
rlRun "pushd ."
|
||||||
rlRun "cd $TESTDIR"
|
rlRun "cd $(ls -d $TESTDIR | grep -v SPECPARTS)"
|
||||||
rlRun "make check &> $TESTLOG"
|
rlRun "make check &> $TESTLOG"
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user