Skip to content

Commit

Permalink
Merge pull request #6773 from sayboras/bugfix/non-test
Browse files Browse the repository at this point in the history
Fix none-test integration test
  • Loading branch information
tstromberg authored Mar 21, 2020
2 parents 6954549 + 63dc938 commit 3022e9a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ jobs:
docker info || true
docker version || true
docker ps || true
- name: install lz4
shell: bash
run: |
sudo apt-get update -qq
sudo apt-get -qq -y install liblz4-tool
- name: Install gopogh
shell: bash
run: |
Expand Down Expand Up @@ -150,6 +155,11 @@ jobs:
SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643
needs: [build_minikube]
steps:
- name: install lz4
shell: bash
run: |
sudo apt-get update -qq
sudo apt-get -qq -y install liblz4-tool
- name: Docker Info
shell: bash
run: |
Expand Down Expand Up @@ -218,6 +228,11 @@ jobs:
SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643
runs-on: ubuntu-16.04
steps:
- name: install lz4
shell: bash
run: |
sudo apt-get update -qq
sudo apt-get -qq -y install liblz4-tool
- name: Install gopogh
shell: bash
run: |
Expand Down Expand Up @@ -280,6 +295,11 @@ jobs:
SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643
runs-on: ubuntu-18.04
steps:
- name: install lz4
shell: bash
run: |
sudo apt-get update -qq
sudo apt-get -qq -y install liblz4-tool
- name: Install gopogh
shell: bash
run: |
Expand Down Expand Up @@ -342,6 +362,11 @@ jobs:
SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643
runs-on: ubuntu-18.04
steps:
- name: install lz4
shell: bash
run: |
sudo apt-get update -qq
sudo apt-get -qq -y install liblz4-tool
- name: install podman
shell: bash
run: |
Expand Down
8 changes: 7 additions & 1 deletion test/integration/none_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ func TestChangeNoneUser(t *testing.T) {
t.Errorf("Failed to convert uid to int: %v", err)
}

for _, p := range []string{localpath.MiniPath(), filepath.Join(u.HomeDir, ".kube/config")} {
// Retrieve the kube config from env
kubeConfig := os.Getenv("KUBECONFIG")
if kubeConfig == "" {
kubeConfig = filepath.Join(u.HomeDir, ".kube/config")
}

for _, p := range []string{localpath.MiniPath(), kubeConfig} {
info, err := os.Stat(p)
if err != nil {
t.Errorf("stat(%s): %v", p, err)
Expand Down

0 comments on commit 3022e9a

Please sign in to comment.