Skip to content
Snippets Groups Projects
Commit c08fc567 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-459: added test to see if netcat is available on build/test system

parent 4386083d
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,17 @@ except ImportError: ...@@ -7,6 +7,17 @@ except ImportError:
print 'Please install MagicMock: pip install mock' print 'Please install MagicMock: pip install mock'
exit(3) exit(3)
# test if netcat is available
try:
from subprocess import call
if call("which nc", shell=True) != 0:
print 'Cannot run test without netcat'
print 'Please install netcat.'
exit(3)
except Exception as e:
print e
exit(3)
import logging import logging
import unittest import unittest
import uuid import uuid
......
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