fix: linux dev workflow

This commit is contained in:
Florian Sylvain committed 2026-10-11 06:31:49 +02:00
1 parent ce9c876db6
commit 67b3ff03d0
3 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -22,6 +22,7 @@ import (
"runtime"
"strings"
"sync"
"syscall"
"testing"
"time"
)
@@ -470,7 +471,7 @@ func (r *downloadRig) waitForJob(states ...string) update.Job {
func assertStagedDirGone(t *testing.T, rig *downloadRig) {
t.Helper()
if _, err := os.Stat(rig.stagedDir()); !os.IsNotExist(err) {
if _, err := os.Stat(rig.stagedDir()); !os.IsNotExist(err) && !errors.Is(err, syscall.ENOTDIR) {
t.Errorf("staged directory still exists: %v", err)
}
}