Commit 42d8daf8 authored by ale's avatar ale
Browse files

Set TESTDATA_DIR in the right place

parent b48b4e68
Pipeline #15243 failed with stage
in 11 minutes and 35 seconds
......@@ -33,8 +33,8 @@ docker_build_and_release_tests:
script:
- ./test/mkenv ./test/env/$TEST_NAME $BUILD_DIR
- with-ssh-key $BUILD_DIR/float/scripts/floatup.py ${LIBVIRT:+--ssh $LIBVIRT} --inventory $BUILD_DIR/hosts.yml --ram 3072 --image ${VM_IMAGE:-buster} up
- with-ssh-key $BUILD_DIR/float/test-driver init --no-vagrant $BUILD_DIR
- with-ssh-key env TESTDATA_DIR=$BUILD_DIR/testdata $BUILD_DIR/float/test-driver run $BUILD_DIR $PWD/playbooks/ai3-test-docker.yml
- with-ssh-key env TESTDATA_DIR=$BUILD_DIR/testdata $BUILD_DIR/float/test-driver init --no-vagrant $BUILD_DIR
- with-ssh-key $BUILD_DIR/float/test-driver run $BUILD_DIR $PWD/playbooks/ai3-test-docker.yml
after_script:
- with-ssh-key $BUILD_DIR/float/test-driver cleanup --no-vagrant $BUILD_DIR
- with-ssh-key $BUILD_DIR/float/scripts/floatup.py ${LIBVIRT:+--ssh ${LIBVIRT}} down
......
......@@ -5,21 +5,21 @@
roles:
- testdata-ldap
vars:
testdata_dir: "{{ lookup('env', 'TESTDATA_DIR') | default(playbook_dir + '/../../testdata') }}"
testdata_dir: "{{ lookup('env', 'TESTDATA_DIR') | default(playbook_dir + '/../../testdata', True) }}"
- hosts: web-users
gather_facts: no
roles:
- testdata-web-users
vars:
testdata_dir: "{{ lookup('env', 'TESTDATA_DIR') | default(playbook_dir + '/../../testdata') }}"
testdata_dir: "{{ lookup('env', 'TESTDATA_DIR') | default(playbook_dir + '/../../testdata', True) }}"
- hosts: noblogs
gather_facts: no
roles:
- testdata-noblogs
vars:
testdata_dir: "{{ lookup('env', 'TESTDATA_DIR') | default(playbook_dir + '/../../testdata') }}"
testdata_dir: "{{ lookup('env', 'TESTDATA_DIR') | default(playbook_dir + '/../../testdata', True) }}"
- hosts: frontend
gather_facts: no
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment