From a77e69c7e33486c0b162f9467c44bed52a9284e5 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 22 May 2025 17:57:00 +0200 Subject: [PATCH] Gitlab: fix cleanup after failed netlab I forgot to add cd command to move to the right directory. --- .gitlab-ci.yml | 1 + misc/gitlab/template.yml.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 337d8ace3..3acecbeba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1126,6 +1126,7 @@ build-netlab: - sudo ./stop - sudo ./runtest -s v3 -m check $TEST_NAME after_script: + - cd $TOOLS_DIR/netlab - sudo ./stop artifacts: when: on_failure diff --git a/misc/gitlab/template.yml.j2 b/misc/gitlab/template.yml.j2 index ed534c390..2c2ebefc6 100644 --- a/misc/gitlab/template.yml.j2 +++ b/misc/gitlab/template.yml.j2 @@ -392,6 +392,7 @@ build-netlab: - sudo ./stop - sudo ./runtest -s v3 -m check $TEST_NAME after_script: + - cd $TOOLS_DIR/netlab - sudo ./stop artifacts: when: on_failure -- 2.47.2