lorax/tests/cli/test_ci.sh
Jakub Rusz 0f20c8f5cf tests: Add new test to run 'test' and 'check' in cockpit ci
(cherry picked from commit ac01d52fa6c27de274394dfaa144990f05d9b8df)

Related: rhbz#1785154
2020-02-07 11:51:13 +01:00

24 lines
440 B
Bash
Executable File

#!/bin/bash
# Note: execute this file from the project root directory
set -e
. /usr/share/beakerlib/beakerlib.sh
yum-config-manager --enable epel
dnf -y install $(cat /lorax/test-packages)
pip3 install pocketlint
cd /lorax
rlJournalStart
rlPhaseStartTest "check"
# running with -k because of possible errors that would make "make test" to not run
rlRun "make ci -k"
rlPhaseEnd
rlJournalEnd
rlJournalPrintText