mirror of
https://github.com/rancher/os.git
synced 2025-09-01 06:40:31 +00:00
Execute start scripts using bash
This commit is contained in:
16
tests/start_commands_test.go
Normal file
16
tests/start_commands_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package integration
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
. "gopkg.in/check.v1"
|
||||
)
|
||||
|
||||
func (s *QemuSuite) TestStartCommands(c *C) {
|
||||
err := s.RunQemu("--cloud-config", "./tests/assets/test_26/cloud-config.yml")
|
||||
c.Assert(err, IsNil)
|
||||
|
||||
for i := 1; i < 6; i++ {
|
||||
s.CheckCall(c, fmt.Sprintf("ls /home/rancher | grep test%d", i))
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user