mirror of
https://github.com/rancher/os.git
synced 2025-06-29 00:06:49 +00:00
16 lines
530 B
Go
Executable File
16 lines
530 B
Go
Executable File
package integration
|
|
|
|
import . "gopkg.in/check.v1"
|
|
|
|
func (s *QemuSuite) TestElideCmdLine(c *C) {
|
|
runArgs := []string{
|
|
"--fresh",
|
|
"--append-init",
|
|
"cc.hostname=nope rancher.debug=true",
|
|
}
|
|
s.RunQemuWith(c, runArgs...)
|
|
|
|
s.CheckOutput(c, "nope\n", Equals, "hostname")
|
|
s.CheckOutput(c, "printk.devkmsg=on rancher.debug=true rancher.password=rancher console=ttyS0 rancher.autologin=ttyS0 rancher.state.dev=LABEL=RANCHER_STATE rancher.state.autoformat=[/dev/sda,/dev/vda] rancher.rm_usr -- \n", Equals, "cat /proc/cmdline")
|
|
}
|