You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
483 B

package main
import (
"strings"
"testing"
)
func TestUserdataMountDataContainsOnlyExt4Options(t *testing.T) {
for _, option := range strings.Split(userdataMountData, ",") {
switch option {
case "rw", "ro", "noatime", "nodev", "nosuid", "noexec":
t.Fatalf("generic mount option %q must be represented by mount flags", option)
}
}
if userdataMountData != "errors=remount-ro" {
t.Fatalf("userdata mount data = %q, want ext4 error policy only", userdataMountData)
}
}