Last active
November 27, 2017 19:33
-
-
Save jurgob/7b29690416c60eac596c45e937eb8e6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#to execute copy/paste this capi/cs: | |
# curl https://gist.githubusercontent.com/jurgob/7b29690416c60eac596c45e937eb8e6b/raw/431947a2189d6897a54ba481104c9cc132ff7b6e/execute_test__cs_capi.sh | bash | |
sudo -iu qatests | |
cd /home/qatests/qatests/ | |
export LOCAL_IP=$(npe-node-info-all |grep -A5 loadtest |grep ip|awk '{print $2}') | |
export PYTHONPATH=/home/qatests/qatests/ | |
rm test_*.log | |
#CS | |
py.test -v -s -n 8 --full-trace --rerun 2 --color=yes -m 'not skip and not not_npe and not serial and trusted and not marker_17598_qcc and not specific_execution and (always or conversation_cs)' 2>&1 | tee test_cs.log | |
#CAPI | |
py.test -v -s -n 8 --full-trace --rerun 2 --color=yes -m 'not skip and not not_npe and not serial and trusted and conversation_capi' 2>&1 | tee test_capi.log | |
rm test_*.log | |
touch test_results.log | |
echo "RESULTS" > test_results.log | |
tail -n 1 test_*.txt > test_results.log | |
grep "FAILED testcases\|ERROR testcases" test_*.log > test_results.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment