Skip to content

Commit 369fb88

Browse files
committed
Fix unittest
1 parent f729d9c commit 369fb88

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/integration/in_pod/test_podman_compose_in_pod.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_x_podman_in_pod_false_command_line_in_pod_true(self):
9696
]
9797

9898
try:
99-
out, err = self.run_subprocess_assert_returncode(command_up)
99+
out, err = self.run_subprocess_assert_returncode(command_up, 125)
100100
self.assertEqual(b"Error: --userns and --pod cannot be set together" in err, True)
101101

102102
finally:
@@ -221,7 +221,7 @@ def test_x_podman_in_pod_true_command_line_in_pod_not_exists(self):
221221
]
222222

223223
try:
224-
out, err = self.run_subprocess_assert_returncode(command_up)
224+
out, err = self.run_subprocess_assert_returncode(command_up, 125)
225225
self.assertEqual(b"Error: --userns and --pod cannot be set together" in err, True)
226226

227227
finally:
@@ -255,7 +255,7 @@ def test_x_podman_in_pod_true_command_line_in_pod_true(self):
255255
]
256256

257257
try:
258-
out, err = self.run_subprocess_assert_returncode(command_up)
258+
out, err = self.run_subprocess_assert_returncode(command_up, 125)
259259
self.assertEqual(b"Error: --userns and --pod cannot be set together" in err, True)
260260

261261
finally:
@@ -334,7 +334,7 @@ def test_x_podman_in_pod_true_command_line_in_pod_empty_string(self):
334334
]
335335

336336
try:
337-
out, err = self.run_subprocess_assert_returncode(command_up)
337+
out, err = self.run_subprocess_assert_returncode(command_up, 125)
338338
self.assertEqual(b"Error: --userns and --pod cannot be set together" in err, True)
339339

340340
finally:
@@ -368,7 +368,7 @@ def test_x_podman_in_pod_not_exists_command_line_in_pod_not_exists(self):
368368
]
369369

370370
try:
371-
out, err = self.run_subprocess_assert_returncode(command_up)
371+
out, err = self.run_subprocess_assert_returncode(command_up, 125)
372372
self.assertEqual(b"Error: --userns and --pod cannot be set together" in err, True)
373373

374374
finally:
@@ -402,7 +402,7 @@ def test_x_podman_in_pod_not_exists_command_line_in_pod_true(self):
402402
]
403403

404404
try:
405-
out, err = self.run_subprocess_assert_returncode(command_up)
405+
out, err = self.run_subprocess_assert_returncode(command_up, 125)
406406
self.assertEqual(b"Error: --userns and --pod cannot be set together" in err, True)
407407

408408
finally:
@@ -482,7 +482,7 @@ def test_x_podman_in_pod_not_exists_command_line_in_pod_empty_string(self):
482482
]
483483

484484
try:
485-
out, err = self.run_subprocess_assert_returncode(command_up)
485+
out, err = self.run_subprocess_assert_returncode(command_up, 125)
486486
self.assertEqual(b"Error: --userns and --pod cannot be set together" in err, True)
487487

488488
finally:

0 commit comments

Comments
 (0)