Skip to content

Commit dafee92

Browse files
Manciukicroypat
authored andcommitted
fix(test_reboot): do not assert thread count
An upstream patch was backported to ubuntu 24.04 6.8.0-58 kernel that makes the nx hugepages recover thread a child of the firecracker process, thus increasing process count to 7. As we're not really interested in knowing how many threads we have in this test, let's remove the assertion altogether. Signed-off-by: Riccardo Mancini <mancio@amazon.com>
1 parent bf0f430 commit dafee92

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/integration_tests/functional/test_shut_down.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,6 @@ def test_reboot(uvm_plain_any):
2727
vm.add_net_iface()
2828
vm.start()
2929

30-
# Get Firecracker PID so we can count the number of threads.
31-
firecracker_pid = vm.firecracker_pid
32-
33-
# Get number of threads in Firecracker
34-
cmd = "ps -o nlwp {} | tail -1 | awk '{{print $1}}'".format(firecracker_pid)
35-
_, stdout, _ = utils.check_output(cmd)
36-
nr_of_threads = stdout.rstrip()
37-
assert int(nr_of_threads) == 6
38-
3930
# Consume existing metrics
4031
lines = vm.get_all_metrics()
4132
assert len(lines) == 1

0 commit comments

Comments
 (0)