From 8061a49ca515b893b92b93c6232ddccdbc2e8b93 Mon Sep 17 00:00:00 2001 From: Hyounggyu Choi Date: Mon, 4 Dec 2023 16:16:18 +0100 Subject: [PATCH] kata-ctl: Clean up a test leftover file explicitely It was observed that a tmporary file `/tmp/kata_hybrid_vsock02.hvsock` for test_setup_hvsock_failed() is not removed from time to time. This leads to a test failure for the same test next time due to the file permission on a self-hosted runner. This commit is to explicitely delete the file before the check starts. Signed-off-by: Hyounggyu Choi --- .github/workflows/static-checks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/static-checks.yaml b/.github/workflows/static-checks.yaml index e7715a5df4..e5ed9ef591 100644 --- a/.github/workflows/static-checks.yaml +++ b/.github/workflows/static-checks.yaml @@ -87,6 +87,7 @@ jobs: run: | sudo chown -R $USER:$USER $GITHUB_WORKSPACE $HOME sudo rm -rf $GITHUB_WORKSPACE/* + sudo rm -f /tmp/kata_hybrid* # Sometime we got leftover from test_setup_hvsock_failed() if: ${{ matrix.instance != 'ubuntu-20.04' }} - name: Checkout the code