mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-09-10 21:08:59 +00:00
do not fail on non-existing kubeconfig files
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bats
|
||||
|
||||
COMMAND="$BATS_TEST_DIRNAME/../kubectx"
|
||||
COMMAND="${COMMAND:-$BATS_TEST_DIRNAME/../kubectx}"
|
||||
|
||||
load common
|
||||
|
||||
@@ -29,7 +29,7 @@ load common
|
||||
run ${COMMAND}
|
||||
echo "$output"
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" = "" ]]
|
||||
[[ "$output" = "warning: kubeconfig file not found" ]]
|
||||
}
|
||||
|
||||
@test "get one context and list contexts" {
|
||||
|
Reference in New Issue
Block a user