mirror of
https://github.com/rancher/os.git
synced 2025-09-16 23:21:19 +00:00
Fix some tests
This commit is contained in:
@@ -3,14 +3,14 @@ package integration
|
||||
import . "gopkg.in/check.v1"
|
||||
|
||||
func (s *QemuSuite) TestOem(c *C) {
|
||||
err := s.RunQemu("--append", "rancher.state.dev=x")
|
||||
err := s.RunQemu("--second-drive")
|
||||
c.Assert(err, IsNil)
|
||||
|
||||
s.CheckCall(c, `
|
||||
set -x
|
||||
set -e
|
||||
sudo mkfs.ext4 -L RANCHER_OEM /dev/vda
|
||||
sudo mount /dev/vda /mnt
|
||||
sudo mkfs.ext4 -L RANCHER_OEM /dev/vdb
|
||||
sudo mount /dev/vdb /mnt
|
||||
cat > /tmp/oem-config.yml << EOF
|
||||
#cloud-config
|
||||
rancher:
|
||||
@@ -20,10 +20,11 @@ EOF
|
||||
sudo cp /tmp/oem-config.yml /mnt
|
||||
sudo umount /mnt`)
|
||||
|
||||
s.Reboot()
|
||||
s.Reboot(c)
|
||||
|
||||
s.CheckCall(c, `
|
||||
set -x
|
||||
set -e
|
||||
if [ ! -e /usr/share/ros/oem/oem-config.yml ]; then
|
||||
echo Failed to find /usr/share/ros/oem/oem-config.yml
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user