Add check for 'nc' command to the netns script.

Change-Id: Ife03abdfd41667acaa808cf4a010706c546b6375
This commit is contained in:
Maru Newby
2013-06-14 16:33:31 +00:00
parent ab9eaf7e50
commit c669df38ba

View File

@@ -170,6 +170,11 @@ class TestNetns(unittest.TestCase):
be possible.
"""
try:
execute('which nc')
except Exception:
self.fail("The 'nc' command is not available - please install it.")
sock_filename = os.path.join(tempfile.gettempdir(),
'testsock-%s' % str(uuid.uuid4()))
server = None