Skip to content

Commit

Permalink
client-test: Disable printing test output
Browse files Browse the repository at this point in the history
* smbtorture tests have been configured[1] to print the results
  irrespective of the outcome.
* Test output is now redirected to a separate file[2], additional
  debug lines from ansible are no longer required.

Previous change from 15b8f61 to
configure ANSIBLE_STDOUT_CALLBACK option can also be avoided as
entire results are now available in a separate file.

[1] samba-in-kubernetes/sit-test-cases#44
[2] #67

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
  • Loading branch information
anoopcs9 committed Nov 23, 2023
1 parent 082eb92 commit e2c392a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion playbooks/ansible/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ generate.report:
@ansible-playbook -i $(INVENTORY) ${ANSIBLE_EXTRA_VARS} ./generate-report.yml

client.test:
@ANSIBLE_STDOUT_CALLBACK=debug ansible-playbook -i $(INVENTORY) ${ANSIBLE_EXTRA_VARS} ./client-test.yml
@ansible-playbook -i $(INVENTORY) ${ANSIBLE_EXTRA_VARS} ./client-test.yml

setup.site: setup.cluster setup.clients client.test

Expand Down
18 changes: 6 additions & 12 deletions playbooks/ansible/roles/test.sit-test-cases/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
---
- name: Run tests
block:
- shell:
chdir: /root/sit-test-cases
cmd: make test &> /var/log/test.out
register: test_output
- debug: var=test_output.stdout_lines
shell:
chdir: /root/sit-test-cases
cmd: make test &> /var/log/test.out
when: test_sanity_only is undefined

- name: Run sanity tests
block:
- shell:
chdir: /root/sit-test-cases
cmd: make sanity_test &> /var/log/test.out
register: test_output
- debug: var=test_output.stdout_lines
shell:
chdir: /root/sit-test-cases
cmd: make sanity_test &> /var/log/test.out
when: test_sanity_only is defined

0 comments on commit e2c392a

Please sign in to comment.