Use a temporary shared dir when testing
otherwise composer-cli is unable to glob() the kickstart files and we're left without supported compose types. Seen during AWS testing for example. Helps with running some of the tests via sudo b/c this is what Jenkins requires.
This commit is contained in:
parent
c9d706a382
commit
b88466fd74
@ -6,11 +6,15 @@ rm -rf /var/tmp/beakerlib-*/
|
|||||||
export top_srcdir=`pwd`
|
export top_srcdir=`pwd`
|
||||||
. ./tests/testenv.sh
|
. ./tests/testenv.sh
|
||||||
|
|
||||||
BLUEPRINTS_DIR=`mktemp -d '/tmp/blueprints.XXXXX'`
|
BLUEPRINTS_DIR=`mktemp -d '/tmp/composer-blueprints.XXXXX'`
|
||||||
cp ./tests/pylorax/blueprints/*.toml $BLUEPRINTS_DIR
|
cp ./tests/pylorax/blueprints/*.toml $BLUEPRINTS_DIR
|
||||||
|
|
||||||
|
SHARE_DIR=`mktemp -d '/tmp/composer-share.XXXXX'`
|
||||||
|
cp -R ./share/* $SHARE_DIR
|
||||||
|
chmod a+rx -R $SHARE_DIR
|
||||||
|
|
||||||
# start the lorax-composer daemon
|
# start the lorax-composer daemon
|
||||||
./src/sbin/lorax-composer --sharedir ./share/ $BLUEPRINTS_DIR &
|
./src/sbin/lorax-composer --sharedir $SHARE_DIR $BLUEPRINTS_DIR &
|
||||||
|
|
||||||
# wait for the backend to become ready
|
# wait for the backend to become ready
|
||||||
tries=0
|
tries=0
|
||||||
|
Loading…
Reference in New Issue
Block a user