mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 23:26:39 -08:00
feat: Adding support for Windows testing (#3037)
Signed-off-by: Owen Rumney <owen.rumney@aquasec.com> Signed-off-by: knqyf263 <knqyf263@gmail.com> Co-authored-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
@@ -16,6 +17,10 @@ import (
|
||||
)
|
||||
|
||||
func TestManager_Register(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
// WASM tests difficult on Windows
|
||||
t.Skip("Test satisfied adequately by Linux tests")
|
||||
}
|
||||
tests := []struct {
|
||||
name string
|
||||
noModuleDir bool
|
||||
|
||||
Reference in New Issue
Block a user