Skip to content
Snippets Groups Projects
Commit 1fa439b8 authored by Auke Klazema's avatar Auke Klazema
Browse files

SW-609: Remove old python check

parent a90b0925
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,5 @@
# Run the unit test
source python-coverage.sh
PYTHONVERSION=$(python -V|awk '{print $1}')
if [ $PYTHONVERSION \> "2.6.9" ] ; then
python_coverage_test "Messaging/python" t_messages.py
else
echo "python version too low for testing"
fi
python_coverage_test "Messaging/python" t_messages.py
#!/bin/bash -e
PYTHONVERSION=$(python -V|awk '{print $1}')
if [ $PYTHONVERSION \> "2.6.9" ] ; then
#cleanup on normal exit and on SIGHUP, SIGINT, SIGQUIT, and SIGTERM
trap 'qpid-config del exchange --force $queue' 0 1 2 3 15
#cleanup on normal exit and on SIGHUP, SIGINT, SIGQUIT, and SIGTERM
trap 'qpid-config del exchange --force $queue' 0 1 2 3 15
# Generate randome queue name
queue=$(< /dev/urandom tr -dc [:alnum:] | head -c16)
# Generate randome queue name
queue=$(< /dev/urandom tr -dc [:alnum:] | head -c16)
# Create the queue
qpid-config add exchange topic $queue
# Create the queue
qpid-config add exchange topic $queue
# Run the unit test
source python-coverage.sh
python_coverage_test "Messaging/python" t_service_message_handler.py $queue
else
echo "Python version too low"
fi
# Run the unit test
source python-coverage.sh
python_coverage_test "Messaging/python" t_service_message_handler.py $queue
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment