Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum committed Nov 28, 2023
1 parent 175b448 commit 8534d22
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
7 changes: 1 addition & 6 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ steps:
volumes:
- name: docker
path: /var/run/docker.sock
- name: tests
path: /integration-tests
trigger:
event:
- pull_request
Expand All @@ -174,9 +172,6 @@ volumes:
- host:
path: /var/run/docker.sock
name: docker
- host:
path: /agent/integration-tests
name: tests
---
kind: pipeline
name: Test (Full)
Expand Down Expand Up @@ -1454,6 +1449,6 @@ kind: secret
name: updater_private_key
---
kind: signature
hmac: 8bfca67a142e2d4ae303f5887ecc6299dc60ba342fde3d681e65e7dab2f1e1a1
hmac: b2804fac3a22d71112243d8736f990aec7cdabec5cf2df35bd33dfbfd0e9724e

...
10 changes: 0 additions & 10 deletions .drone/pipelines/test.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ local pipelines = import '../util/pipelines.jsonnet';
volumes: [{
name: 'docker',
path: '/var/run/docker.sock',
},
{
name: 'tests',
path: '/integration-tests',
}],
commands: [
'make integration-test',
Expand All @@ -105,12 +101,6 @@ local pipelines = import '../util/pipelines.jsonnet';
host: {
path: '/var/run/docker.sock',
},
},
{
name: 'tests',
host: {
path: '/agent/integration-tests',
},
}],
},

Expand Down
8 changes: 7 additions & 1 deletion integration-tests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ func visit(path string, f os.FileInfo, err error) error {
}

func setupContainers(ctx context.Context) {
err := filepath.Walk(".", visit)
dir, err := os.Getwd()
if err != nil {
fmt.Println("Error:", err)
return
}
fmt.Println("Current working directory:", dir)
err = filepath.Walk(".", visit)
if err != nil {
fmt.Printf("Error walking through directory %s: %v\n", ".", err)
}
Expand Down

0 comments on commit 8534d22

Please sign in to comment.