Skip to content

Commit 0329a0a

Browse files
committed
Merge tag 'v2.0.0' of github.com:ansiblebit/primogen
2.0.0
2 parents 6d35562 + 43e0f4a commit 0329a0a

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ language: python
22
python: 2.7
33

44
install:
5-
- pip install tox
5+
- pip install tox
66

77
script:
8-
- tox -e travis
8+
- tox -e travis
99

tests/log/.gitkeep

Whitespace-only changes.

tests/test_idempotence.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ GREEN='\033[0;32m'
3030
RED='\033[0;31m'
3131
# SGR code to set text color (foreground) to no color.
3232
NC='\033[0m'
33+
# the logfile to hold the output of the playbook run
34+
LOGFILE="log/${box}_${VIRTUALENV_NAME}.log"
3335

34-
echo "[INFO] $VIRTUALENV_NAME running idempotence test..."
35-
ansible-playbook -i ${INVENTORY} --limit ${box} ${PLAYBOOK} | \
36+
echo "[INFO] ${VIRTUALENV_NAME} running idempotence test..."
37+
ansible-playbook -i ${INVENTORY} --limit ${box} ${PLAYBOOK} 2>&1 | tee ${LOGFILE} | \
3638
grep "${box}" | grep -q "${PASS_CRITERIA}" && \
37-
echo -ne "[TEST] ${box} $VIRTUALENV_NAME idempotence : ${GREEN}PASS${NC}\n" || \
38-
(echo -ne "[TEST] ${box} $VIRTUALENV_NAME idempotence : ${RED}FAILED${NC} ${PASS_CRITERIA}\n" && exit 1)
39+
echo -ne "[TEST] ${box} ${VIRTUALENV_NAME} idempotence : ${GREEN}PASS${NC}\n" || \
40+
(echo -ne "[TEST] ${box} ${VIRTUALENV_NAME} idempotence : ${RED}FAILED${NC} ${PASS_CRITERIA}\n" && exit 1)

0 commit comments

Comments
 (0)