Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
env:
GHW_TESTING_SKIP_BLOCK: "1"
GHW_TESTING_SKIP_GPU: "1"
# As of ~Feb 2026, Ubuntu runner VMs on Azure no longer expose any PCI
# devices :(
GHW_TESTING_SKIP_PCI: "1"
run: go test -v ./...

ubuntu-2204:
Expand Down Expand Up @@ -73,6 +76,9 @@ jobs:
env:
GHW_TESTING_SKIP_BLOCK: "1"
GHW_TESTING_SKIP_GPU: "1"
# As of ~Feb 2026, Ubuntu runner VMs on Azure no longer expose any PCI
# devices :(
GHW_TESTING_SKIP_PCI: "1"
run: go test -v ./...

windows-latest:
Expand Down
4 changes: 0 additions & 4 deletions pkg/pci/pci_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@ func pciTestSetupI7(t *testing.T) *pci.Info {
}

func pciTestSetup(t *testing.T, snapshotFilename string) *pci.Info {
if _, ok := os.LookupEnv("GHW_TESTING_SKIP_PCI"); ok {
t.Skip("Skipping PCI tests.")
}

testdataPath, err := testdata.SnapshotsDirectory()
if err != nil {
t.Fatalf("Expected nil err, but got %v", err)
Expand Down