1
0
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:
Josh Curl
2016-07-26 15:40:35 -07:00
parent 3700ba4726
commit 1877cfa16b
8 changed files with 27 additions and 34 deletions

View File

@@ -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