From 8534d223418316d876e6c7979e32b2ed799392b3 Mon Sep 17 00:00:00 2001 From: William Dumont Date: Tue, 28 Nov 2023 10:22:41 +0100 Subject: [PATCH] test --- .drone/drone.yml | 7 +------ .drone/pipelines/test.jsonnet | 10 ---------- integration-tests/utils.go | 8 +++++++- 3 files changed, 8 insertions(+), 17 deletions(-) diff --git a/.drone/drone.yml b/.drone/drone.yml index e1db01e77ec8..5083e80059e9 100644 --- a/.drone/drone.yml +++ b/.drone/drone.yml @@ -164,8 +164,6 @@ steps: volumes: - name: docker path: /var/run/docker.sock - - name: tests - path: /integration-tests trigger: event: - pull_request @@ -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) @@ -1454,6 +1449,6 @@ kind: secret name: updater_private_key --- kind: signature -hmac: 8bfca67a142e2d4ae303f5887ecc6299dc60ba342fde3d681e65e7dab2f1e1a1 +hmac: b2804fac3a22d71112243d8736f990aec7cdabec5cf2df35bd33dfbfd0e9724e ... diff --git a/.drone/pipelines/test.jsonnet b/.drone/pipelines/test.jsonnet index c19ae6b1a412..7216eabe391f 100644 --- a/.drone/pipelines/test.jsonnet +++ b/.drone/pipelines/test.jsonnet @@ -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', @@ -105,12 +101,6 @@ local pipelines = import '../util/pipelines.jsonnet'; host: { path: '/var/run/docker.sock', }, - }, - { - name: 'tests', - host: { - path: '/agent/integration-tests', - }, }], }, diff --git a/integration-tests/utils.go b/integration-tests/utils.go index c1e657dfca9b..0b246d859f9b 100644 --- a/integration-tests/utils.go +++ b/integration-tests/utils.go @@ -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) }