Skip to content

Commit

Permalink
tests: use /bin/uname instead of /bin/hostname as dummy output generator
Browse files Browse the repository at this point in the history
Use something included in coreutils installed everywhere.
  • Loading branch information
marmarek committed Oct 23, 2018
1 parent c7c49d8 commit e4f26b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qubes/tests/integ/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def test_030_firewallvm_firewall(self):
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,
Expand Down Expand Up @@ -467,7 +467,7 @@ def test_202_fake_ip_firewall(self):
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,
Expand Down Expand Up @@ -663,7 +663,7 @@ def test_212_custom_ip_firewall(self):
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,
Expand Down Expand Up @@ -823,7 +823,7 @@ def test_530_ipv6_firewallvm_firewall(self):
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,
Expand Down Expand Up @@ -1052,7 +1052,7 @@ def test_712_ipv6_custom_ip_firewall(self):
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,
Expand Down

0 comments on commit e4f26b7

Please sign in to comment.