Ubuntu Pastebin

Paste from Federico Gimenez Nieto at Mon, 28 Sep 2015 16:31:09 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
=== modified file '_integration-tests/tests/rollback_test.go'
--- _integration-tests/tests/rollback_test.go	2015-07-30 09:07:31 +0000
+++ _integration-tests/tests/rollback_test.go	2015-09-28 15:55:52 +0000
@@ -36,6 +36,7 @@
 func (s *rollbackSuite) TestRollbackMustRebootToOtherVersion(c *check.C) {
 	if BeforeReboot() {
 		CallFakeUpdate(c)
+		ExecCommand(c, "cat", "/boot/grub/grubenv")
 		Reboot(c)
 	} else if CheckRebootMark(c.TestName()) {
 		RemoveRebootMark(c)
@@ -44,8 +45,10 @@
 		ExecCommand(c, "sudo", "snappy", "rollback", "ubuntu-core",
 			strconv.Itoa(GetSavedVersion(c)))
 		SetSavedVersion(c, currentVersion)
+		ExecCommand(c, "cat", "/boot/grub/grubenv")
 		RebootWithMark(c, c.TestName()+"-rollback")
 	} else if CheckRebootMark(c.TestName() + "-rollback") {
+		ExecCommand(c, "cat", "/boot/grub/grubenv")
 		RemoveRebootMark(c)
 		c.Assert(
 			GetCurrentUbuntuCoreVersion(c) < GetSavedVersion(c), check.Equals, true)
Download as text