1
0
mirror of https://github.com/rancher/os.git synced 2025-06-29 00:06:49 +00:00
os/tests/cmdline_test.go
Sven Dowideit f6ce1f0685 Use the kernel cmdline elide patch to load config into RancherOS that isn't visible in /pro/cmdline
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-14 14:19:43 +10:00

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")
}