@@ -66,15 +66,12 @@ func TestIpxe(t *testing.T) {
6666 }
6767
6868 expected := `#!ipxe
69- set console ttyS0
70- iseq ${manufacturer} "Dell Inc." && set console ttyS0
71- iseq ${manufacturer} "Supermicro" && set console ttyS1
7269kernel --name kernel http://localhost:1234/_/file?name=k-01%3A02%3A03%3A04%3A05%3A06-0&type=kernel&mac=01%3A02%3A03%3A04%3A05%3A06
7370initrd --name initrd0 http://localhost:1234/_/file?name=i1-01%3A02%3A03%3A04%3A05%3A06-0&type=initrd&mac=01%3A02%3A03%3A04%3A05%3A06
7471initrd --name initrd1 http://localhost:1234/_/file?name=i2-01%3A02%3A03%3A04%3A05%3A06-0&type=initrd&mac=01%3A02%3A03%3A04%3A05%3A06
7572imgfetch --name ready http://localhost:1234/_/booting?mac=01%3A02%3A03%3A04%3A05%3A06 ||
7673imgfree ready ||
77- boot kernel initrd=initrd0 initrd=initrd1 thing=http://localhost:1234/_/file?name=f-01%3A02%3A03%3A04%3A05%3A06-0 foo=bar
74+ boot kernel initrd=initrd0 initrd=initrd1 console=ttyS0,115200n8 thing=http://localhost:1234/_/file?name=f-01%3A02%3A03%3A04%3A05%3A06-0 foo=bar
7875`
7976 if rr .Body .String () != expected {
8077 t .Fatalf ("Wrong iPXE script\n want: %s\n got: %s" , expected , rr .Body .String ())
@@ -94,15 +91,12 @@ boot kernel initrd=initrd0 initrd=initrd1 thing=http://localhost:1234/_/file?nam
9491 }
9592
9693 expected = `#!ipxe
97- set console ttyS0
98- iseq ${manufacturer} "Dell Inc." && set console ttyS0
99- iseq ${manufacturer} "Supermicro" && set console ttyS1
10094kernel --name kernel http://localhost:1234/_/file?name=k-fe%3Afe%3Afe%3Afe%3Afe%3Afe-1&type=kernel&mac=fe%3Afe%3Afe%3Afe%3Afe%3Afe
10195initrd --name initrd0 http://localhost:1234/_/file?name=i1-fe%3Afe%3Afe%3Afe%3Afe%3Afe-1&type=initrd&mac=fe%3Afe%3Afe%3Afe%3Afe%3Afe
10296initrd --name initrd1 http://localhost:1234/_/file?name=i2-fe%3Afe%3Afe%3Afe%3Afe%3Afe-1&type=initrd&mac=fe%3Afe%3Afe%3Afe%3Afe%3Afe
10397imgfetch --name ready http://localhost:1234/_/booting?mac=fe%3Afe%3Afe%3Afe%3Afe%3Afe ||
10498imgfree ready ||
105- boot kernel initrd=initrd0 initrd=initrd1 thing=http://localhost:1234/_/file?name=f-fe%3Afe%3Afe%3Afe%3Afe%3Afe-1 foo=bar
99+ boot kernel initrd=initrd0 initrd=initrd1 console=ttyS0,115200n8 thing=http://localhost:1234/_/file?name=f-fe%3Afe%3Afe%3Afe%3Afe%3Afe-1 foo=bar
106100`
107101 if rr .Body .String () != expected {
108102 t .Fatalf ("Wrong iPXE script\n want: %s\n got: %s" , expected , rr .Body .String ())
0 commit comments