tests: Fix pushd on upstream-testsuite build script
This commit is contained in:
parent
dd98084648
commit
08f53ed8b9
@ -40,7 +40,7 @@ _BASEDIR=\$1
|
|||||||
_TMP=\$(mktemp -d)
|
_TMP=\$(mktemp -d)
|
||||||
rpm --define="_topdir \$_TMP" -Uvh \$_BASEDIR/byacc*.src.rpm
|
rpm --define="_topdir \$_TMP" -Uvh \$_BASEDIR/byacc*.src.rpm
|
||||||
rpmbuild --define="_topdir \$_TMP" -bc \$_TMP/SPECS/byacc.spec
|
rpmbuild --define="_topdir \$_TMP" -bc \$_TMP/SPECS/byacc.spec
|
||||||
pushd \$_TMP/BUILD/byacc-*
|
pushd \$(find \$_TMP/BUILD/ -name yacc -type f -exec dirname {} \;)
|
||||||
# In case the test fails, the existcode of make check is non-zero.
|
# In case the test fails, the existcode of make check is non-zero.
|
||||||
# In such case this script fails too because of set -e above.
|
# In such case this script fails too because of set -e above.
|
||||||
make check
|
make check
|
||||||
@ -56,11 +56,7 @@ rlJournalStart
|
|||||||
rlRun "TMP=\$(mktemp -d)"
|
rlRun "TMP=\$(mktemp -d)"
|
||||||
rlRun "chmod a+rx $TMP"
|
rlRun "chmod a+rx $TMP"
|
||||||
rlRun "pushd $TMP"
|
rlRun "pushd $TMP"
|
||||||
if rlIsRHEL; then
|
|
||||||
rlFetchSrcForInstalled $PACKAGE
|
rlFetchSrcForInstalled $PACKAGE
|
||||||
else
|
|
||||||
yumdownloader --source $PACKAGE
|
|
||||||
fi
|
|
||||||
rlRun "chmod a+r byacc*.src.rpm"
|
rlRun "chmod a+r byacc*.src.rpm"
|
||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user