Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
1fa439b8
Commit
1fa439b8
authored
5 years ago
by
Auke Klazema
Browse files
Options
Downloads
Patches
Plain Diff
SW-609
: Remove old python check
parent
a90b0925
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LCS/Messaging/python/messaging/test/t_messages.run
+1
-6
1 addition, 6 deletions
LCS/Messaging/python/messaging/test/t_messages.run
LCS/Messaging/python/messaging/test/t_service_message_handler.run
+9
-16
9 additions, 16 deletions
...aging/python/messaging/test/t_service_message_handler.run
with
10 additions
and
22 deletions
LCS/Messaging/python/messaging/test/t_messages.run
+
1
−
6
View file @
1fa439b8
...
...
@@ -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
This diff is collapsed.
Click to expand it.
LCS/Messaging/python/messaging/test/t_service_message_handler.run
+
9
−
16
View file @
1fa439b8
#!/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 random
e queue
name
queue
=
$(
< /dev/urandom
tr
-dc
[
:alnum:] |
head
-c16
)
# Create th
e 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment