tailscale/tstest
Brad Fitzpatrick 055fdb235f cmd/tailscaled, tstest/integration: make tailscaled die when parent dies
I noticed that failed tests were leaving aroudn stray tailscaled processes
on macOS at least.

To repro, add this to tstest/integration:

    func TestFailInFewSeconds(t *testing.T) {
        t.Parallel()
        time.Sleep(3 * time.Second)
        os.Exit(1)
        t.Fatal("boom")
    }

Those three seconds let the other parallel tests (with all their
tailscaled child processes) start up and start running their tests,
but then we violently os.Exit(1) the test driver and all the children
were kept alive (and were spinning away, using all available CPU in
gvisor scheduler code, which is a separate scary issue)

Updates #cleanup

Change-Id: I9c891ed1a1ec639fb2afec2808c04dbb8a460e0e
Co-authored-by: Maisem Ali <maisem@tailscale.com>
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-09-01 12:32:47 -07:00
..
archtest all: update copyright and license headers 2023-01-27 15:36:29 -08:00
deptest util/testenv: add new package to hold InTest 2023-08-08 19:51:44 -06:00
integration cmd/tailscaled, tstest/integration: make tailscaled die when parent dies 2023-09-01 12:32:47 -07:00
iosdeps all: replace deprecated ioutil references 2023-08-23 23:53:19 +01:00
jsdeps tstest/deptest: add test-only package to unify negative dep tests 2023-07-20 23:18:40 -07:00
natlab wgengine/magicsock, types/nettype, etc: finish ReadFromUDPAddrPort netip migration 2023-04-15 13:40:15 -07:00
tools all: update copyright and license headers 2023-01-27 15:36:29 -08:00
allocs.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
clock_test.go all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2023-08-17 08:42:35 -07:00
clock.go tstime: add Since method (#8622) 2023-07-14 16:50:17 -04:00
log_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
log.go control/controlclient: remove unused StartLogout 2023-08-30 20:23:03 -07:00
resource.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tstest_test.go tstest: add method to Replace values for tests 2023-03-03 17:02:33 -08:00
tstest.go all: use tstest.Replace more 2023-03-04 12:24:55 -08:00