tailscale/tstest/integration
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
..
testcontrol tailcfg: remove unused Domain field from Login/User 2023-08-18 20:07:17 -07:00
vms all: adjust some build tags for plan9 2023-08-24 15:42:35 -07:00
gen_deps.go all: update tools that manage copyright headers 2023-01-27 15:36:29 -08:00
integration_test.go cmd/tailscaled, tstest/integration: make tailscaled die when parent dies 2023-09-01 12:32:47 -07:00
integration.go all: replace logtail.{Public,Private}ID with logid.{Public,Private}ID (#7404) 2023-02-28 19:00:00 -08:00
tailscaled_deps_test_darwin.go tsd: add package with System type to unify subsystem init, discovery 2023-05-04 14:21:59 -07:00
tailscaled_deps_test_freebsd.go tsd: add package with System type to unify subsystem init, discovery 2023-05-04 14:21:59 -07:00
tailscaled_deps_test_linux.go tsd: add package with System type to unify subsystem init, discovery 2023-05-04 14:21:59 -07:00
tailscaled_deps_test_openbsd.go tsd: add package with System type to unify subsystem init, discovery 2023-05-04 14:21:59 -07:00
tailscaled_deps_test_windows.go go.mod, cmd/tailscaled, ipn/localapi, util/osdiag, util/winutil, util/winutil/authenticode: add Windows module list to OS-specific logs that are written upon bugreport 2023-08-03 11:33:14 -06:00