mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
26 lines
763 B
Diff
26 lines
763 B
Diff
builders do not have sysfs mounted, so test fails
|
|
|
|
diff --git a/nodeup/pkg/model/networking/cilium_test.go b/nodeup/pkg/model/networking/cilium_test.go
|
|
index 1ea7bec..3088466 100644
|
|
--- a/nodeup/pkg/model/networking/cilium_test.go
|
|
+++ b/nodeup/pkg/model/networking/cilium_test.go
|
|
@@ -17,6 +17,7 @@ limitations under the License.
|
|
package networking
|
|
|
|
import (
|
|
+ "os"
|
|
"runtime"
|
|
"testing"
|
|
|
|
@@ -30,6 +31,11 @@ func TestCiliumBuilder(t *testing.T) {
|
|
if runtime.GOOS != "linux" {
|
|
t.Skipf("cilium nodeup test will only work on linux")
|
|
}
|
|
+
|
|
+ if _, err := os.Stat("/sys/fs/bpf"); os.IsNotExist(err) {
|
|
+ t.Skipf("cilium nodeup test requires sysfs mounted")
|
|
+ }
|
|
+
|
|
context := &model.NodeupModelContext{
|
|
Cluster: &kops.Cluster{
|
|
Spec: kops.ClusterSpec{
|