mirror of https://github.com/helm/helm
Refer to the stderr manpage: $ man 3 stderr *Note that mixing use of FILEs and raw file descriptors can produce unexpected results and should generally be avoided.* And actually, we noticed that the warning() will output the message to stdout instead of stderr sometimes. lizj@FNSTPC:~/workspace/k8s/helm$ while true; do timeout 1m go test -count=1 -run TestCheckPerms ./cmd/helm -v 2>/dev/null; done === RUN TestCheckPerms --- PASS: TestCheckPerms (0.00s) PASS ok helm.sh/helm/v3/cmd/helm 0.028s === RUN TestCheckPerms --- PASS: TestCheckPerms (0.00s) PASS ok helm.sh/helm/v3/cmd/helm 0.027s === RUN TestCheckPerms --- PASS: TestCheckPerms (0.00s) PASS ok helm.sh/helm/v3/cmd/helm 0.028s === RUN TestCheckPerms --- PASS: TestCheckPerms (0.00s) PASS ok helm.sh/helm/v3/cmd/helm 0.029s === RUN TestCheckPerms --- PASS: TestCheckPerms (0.00s) PASS ok helm.sh/helm/v3/cmd/helm 0.029s === RUN TestCheckPerms --- PASS: TestCheckPerms (0.00s) PASS ok helm.sh/helm/v3/cmd/helm 0.028s === RUN TestCheckPerms --- PASS: TestCheckPerms (0.00s) PASS ok helm.sh/helm/v3/cmd/helm 0.030s === RUN TestCheckPerms WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /tmp/helmtest093620773/testconfig === RUN TestCheckPerms WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /tmp/helmtest083469215/testconfig === RUN TestCheckPerms WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /tmp/helmtest101343249/testconfig === RUN TestCheckPerms --- PASS: TestCheckPerms (0.00s) PASS ok helm.sh/helm/v3/cmd/helm 0.032s === RUN TestCheckPerms --- PASS: TestCheckPerms (0.00s) PASS ok helm.sh/helm/v3/cmd/helm 0.040s === RUN TestCheckPerms --- PASS: TestCheckPerms (0.00s) PASS ok helm.sh/helm/v3/cmd/helm 0.031s === RUN TestCheckPerms WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /tmp/helmtest706352639/testconfig Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com> Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>pull/8828/head
parent
c215782436
commit
59c77716ad
Loading…
Reference in new issue