Add check for 'nc' command to the netns script.
Change-Id: Ife03abdfd41667acaa808cf4a010706c546b6375
This commit is contained in:
@@ -170,6 +170,11 @@ class TestNetns(unittest.TestCase):
|
|||||||
be possible.
|
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(),
|
sock_filename = os.path.join(tempfile.gettempdir(),
|
||||||
'testsock-%s' % str(uuid.uuid4()))
|
'testsock-%s' % str(uuid.uuid4()))
|
||||||
server = None
|
server = None
|
||||||
|
|||||||
Reference in New Issue
Block a user