mirror of
https://github.com/rancher/os.git
synced 2025-07-01 01:01:48 +00:00
Merge pull request #1542 from SvenDowideit/underscore_filenames
If golint can't deal with dashes, then argh!
This commit is contained in:
commit
48acef5336
@ -1,8 +1,8 @@
|
|||||||
package integration
|
package integration
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
|
||||||
. "gopkg.in/check.v1"
|
. "gopkg.in/check.v1"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (s *QemuSuite) TestOsRelease(c *C) {
|
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, "VERSION="+version, Equals, "cat /etc/os-release | grep VERSION=")
|
||||||
s.CheckOutput(c, "NAME=\"RancherOS\"\n", Equals, "cat /etc/os-release | grep ^NAME=")
|
s.CheckOutput(c, "NAME=\"RancherOS\"\n", Equals, "cat /etc/os-release | grep ^NAME=")
|
||||||
|
|
||||||
s.MakeCall("sudo ros console switch -f alpine")
|
s.MakeCall("sudo ros console switch -f alpine")
|
||||||
c.Assert(s.WaitForSSH(), IsNil)
|
c.Assert(s.WaitForSSH(), IsNil)
|
||||||
|
|
||||||
s.CheckOutput(c, "/sbin/apk\n", Equals, "which apk")
|
s.CheckOutput(c, "/sbin/apk\n", Equals, "which apk")
|
||||||
s.CheckOutput(c, "VERSION="+version, Equals, "cat /etc/os-release | grep VERSION=")
|
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.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, "/sbin/apk\n", Equals, "which apk")
|
||||||
s.CheckOutput(c, "VERSION="+version, Equals, "cat /etc/os-release | grep VERSION=")
|
s.CheckOutput(c, "VERSION="+version, Equals, "cat /etc/os-release | grep VERSION=")
|
Loading…
Reference in New Issue
Block a user