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:
parent
b67ce5379c
commit
b71e8f74d8
@ -77,7 +77,10 @@ class ComposerTestCase(unittest.TestCase):
|
|||||||
return subprocess.run(self.ssh_command + command, **args)
|
return subprocess.run(self.ssh_command + command, **args)
|
||||||
|
|
||||||
def runCliTest(self, script):
|
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)
|
self.assertEqual(r.returncode, 0)
|
||||||
|
|
||||||
|
|
||||||
|
@ -53,6 +53,7 @@ if [ -z "$CLI" ]; then
|
|||||||
# start the lorax-composer daemon
|
# start the lorax-composer daemon
|
||||||
./src/sbin/lorax-composer --sharedir $SHARE_DIR $BLUEPRINTS_DIR &
|
./src/sbin/lorax-composer --sharedir $SHARE_DIR $BLUEPRINTS_DIR &
|
||||||
else
|
else
|
||||||
|
export PACKAGE="composer-cli"
|
||||||
SHARE_DIR="/usr/share/lorax"
|
SHARE_DIR="/usr/share/lorax"
|
||||||
setup_tests $SHARE_DIR
|
setup_tests $SHARE_DIR
|
||||||
systemctl restart lorax-composer
|
systemctl restart lorax-composer
|
||||||
|
Loading…
Reference in New Issue
Block a user