1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 06:11:12 +00:00
Files
os/tests/swap_test.go

12 lines
318 B
Go
Raw Normal View History

2016-07-20 10:42:16 -07:00
package integration
import . "gopkg.in/check.v1"
func (s *QemuSuite) TestSwap(c *C) {
2016-10-21 20:34:30 -07:00
s.RunQemu(c, "--cloud-config", "./tests/assets/test_21/cloud-config.yml", "--second-drive")
2016-07-20 10:42:16 -07:00
s.CheckCall(c, "sudo mkswap /dev/vdb")
s.CheckCall(c, "sudo cloud-init-execute")
2016-07-20 10:42:16 -07:00
s.CheckCall(c, "cat /proc/swaps | grep /dev/vdb")
}