1
0
mirror of https://passt.top/passt synced 2024-07-05 01:12:41 +00:00
passt/test/lib
David Gibson d078a1113f tests: Remove unnecessary ^D in passt_in_ns teardown
teardown_passt_in_ns() sends a ^D to the NS pane, which appears to be
intended to terminate the nsenter running there, leaving the namespace.
However, we've also sent a ^D to the PASST pane which will exit the pasta
instance which created the namespace.  With the namespace destroyed the
nsenter in the NS pane will be killed, so it does not need to be exited
explicitly.

In fact sending the extra ^D can be harmful, since it will exit the shell
in which the nsenter was run, causing the whole pane to be closed.  That
can then mean that the "pane_wait NS" hangs indefinitely.  I believe this
will sometimes work, because there's a race between the various options
here, but it should be more reliable without the extra ^D.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2022-07-22 19:42:18 +02:00
..
layout test: Add demo for Podman with pasta 2022-02-22 18:34:44 +01:00
perf_report test/lib: Consistent cols, rows, poster attributes for asciinema player 2022-04-07 11:44:35 +02:00
setup tests: Remove unnecessary ^D in passt_in_ns teardown 2022-07-22 19:42:18 +02:00
term tests: Don't check exit code for every command in demo mode 2022-05-19 15:24:22 +02:00
test tests: Explicitly list test files in test/run, remove "onlyfor" support 2022-07-14 01:32:42 +02:00
util tests: Remove unused set_mode() function 2022-07-14 01:32:42 +02:00
video test/lib: Consistent cols, rows, poster attributes for asciinema player 2022-04-07 11:44:35 +02:00