mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-14 15:07:55 +00:00
tstest/integration: add --accept-risk=all to tailscale down
The test would fail if I was running it over SSH. Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
0480a925c1
commit
41dd49391f
@@ -18,6 +18,7 @@ import (
|
||||
var (
|
||||
riskTypes []string
|
||||
riskLoseSSH = registerRiskType("lose-ssh")
|
||||
riskAll = registerRiskType("all")
|
||||
)
|
||||
|
||||
func registerRiskType(riskType string) string {
|
||||
@@ -35,7 +36,7 @@ func registerAcceptRiskFlag(f *flag.FlagSet, acceptedRisks *string) {
|
||||
// risks in acceptedRisks.
|
||||
func isRiskAccepted(riskType, acceptedRisks string) bool {
|
||||
for _, r := range strings.Split(acceptedRisks, ",") {
|
||||
if r == riskType {
|
||||
if r == riskType || r == riskAll {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user