tests: use /bin/uname instead of /bin/hostname as dummy output generator

Use something included in coreutils installed everywhere.
This commit is contained in:
Marek Marczykowski-Górecki 2018-10-21 19:38:21 +02:00
parent f13029219b
commit e244c192ae
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -220,7 +220,7 @@ class VmNetworkingMixin(object):
self.assertTrue(self.proxy.is_running())
server = self.loop.run_until_complete(self.testnetvm.run(
'socat TCP-LISTEN:1234,fork EXEC:/bin/hostname'))
'socat TCP-LISTEN:1234,fork EXEC:/bin/uname'))
try:
self.assertEqual(self.run_cmd(self.proxy, self.ping_ip), 0,
@ -467,7 +467,7 @@ class VmNetworkingMixin(object):
self.assertTrue(self.proxy.is_running())
server = self.loop.run_until_complete(self.testnetvm.run(
'socat TCP-LISTEN:1234,fork EXEC:/bin/hostname'))
'socat TCP-LISTEN:1234,fork EXEC:/bin/uname'))
try:
self.assertEqual(self.run_cmd(self.proxy, self.ping_ip), 0,
@ -663,7 +663,7 @@ class VmNetworkingMixin(object):
self.assertTrue(self.proxy.is_running())
server = self.loop.run_until_complete(self.testnetvm.run(
'socat TCP-LISTEN:1234,fork EXEC:/bin/hostname'))
'socat TCP-LISTEN:1234,fork EXEC:/bin/uname'))
try:
self.assertEqual(self.run_cmd(self.proxy, self.ping_ip), 0,
@ -823,7 +823,7 @@ class VmIPv6NetworkingMixin(VmNetworkingMixin):
self.assertTrue(self.proxy.is_running())
server = self.loop.run_until_complete(self.testnetvm.run(
'socat TCP6-LISTEN:1234,fork EXEC:/bin/hostname'))
'socat TCP6-LISTEN:1234,fork EXEC:/bin/uname'))
try:
self.assertEqual(self.run_cmd(self.proxy, self.ping6_ip), 0,
@ -1052,7 +1052,7 @@ class VmIPv6NetworkingMixin(VmNetworkingMixin):
self.assertTrue(self.proxy.is_running())
server = self.loop.run_until_complete(self.testnetvm.run(
'socat TCP6-LISTEN:1234,fork EXEC:/bin/hostname'))
'socat TCP6-LISTEN:1234,fork EXEC:/bin/uname'))
try:
self.assertEqual(self.run_cmd(self.proxy, self.ping6_ip), 0,