Configure $PACKAGE for beakerlib reports

this makes it more clear that we are testing the installed RPM
instead of sources
This commit is contained in:
Alexander Todorov 2019-05-28 14:17:25 +03:00 committed by Lars Karlitski
parent b67ce5379c
commit b71e8f74d8
2 changed files with 5 additions and 1 deletions

View File

@ -77,7 +77,10 @@ class ComposerTestCase(unittest.TestCase):
return subprocess.run(self.ssh_command + command, **args)
def runCliTest(self, script):
r = self.execute(["CLI=/usr/bin/composer-cli", "TEST=" + self.id(), "/tests/test_cli.sh", script])
r = self.execute(["CLI=/usr/bin/composer-cli",
"TEST=" + self.id(),
"PACKAGE=composer-cli",
"/tests/test_cli.sh", script])
self.assertEqual(r.returncode, 0)

View File

@ -53,6 +53,7 @@ if [ -z "$CLI" ]; then
# start the lorax-composer daemon
./src/sbin/lorax-composer --sharedir $SHARE_DIR $BLUEPRINTS_DIR &
else
export PACKAGE="composer-cli"
SHARE_DIR="/usr/share/lorax"
setup_tests $SHARE_DIR
systemctl restart lorax-composer