1
0
mirror of https://github.com/rancher/os.git synced 2025-06-30 00:31:49 +00:00

Merge pull request #1542 from SvenDowideit/underscore_filenames

If golint can't deal with dashes, then argh!
This commit is contained in:
Sven Dowideit 2017-01-22 16:42:25 +10:00 committed by GitHub
commit 48acef5336

View File

@ -1,8 +1,8 @@
package integration
import (
"strings"
. "gopkg.in/check.v1"
"strings"
)
func (s *QemuSuite) TestOsRelease(c *C) {
@ -13,14 +13,14 @@ func (s *QemuSuite) TestOsRelease(c *C) {
s.CheckOutput(c, "VERSION="+version, Equals, "cat /etc/os-release | grep VERSION=")
s.CheckOutput(c, "NAME=\"RancherOS\"\n", Equals, "cat /etc/os-release | grep ^NAME=")
s.MakeCall("sudo ros console switch -f alpine")
c.Assert(s.WaitForSSH(), IsNil)
s.MakeCall("sudo ros console switch -f alpine")
c.Assert(s.WaitForSSH(), IsNil)
s.CheckOutput(c, "/sbin/apk\n", Equals, "which apk")
s.CheckOutput(c, "VERSION="+version, Equals, "cat /etc/os-release | grep VERSION=")
s.CheckOutput(c, "NAME=\"RancherOS\"\n", Equals, "cat /etc/os-release | grep ^NAME=")
s.Reboot(c)
s.Reboot(c)
s.CheckOutput(c, "/sbin/apk\n", Equals, "which apk")
s.CheckOutput(c, "VERSION="+version, Equals, "cat /etc/os-release | grep VERSION=")