]> piware.de Git - bin.git/commitdiff
add expect scripts for VM updates
authorMartin Pitt <martin@piware.de>
Tue, 14 Feb 2017 13:13:18 +0000 (14:13 +0100)
committerMartin Pitt <martin@piware.de>
Tue, 14 Feb 2017 13:13:18 +0000 (14:13 +0100)
autopkgtest-sid-update.exp [new file with mode: 0755]
f25-update.exp [new file with mode: 0755]

diff --git a/autopkgtest-sid-update.exp b/autopkgtest-sid-update.exp
new file mode 100755 (executable)
index 0000000..0478880
--- /dev/null
@@ -0,0 +1,20 @@
+#!/usr/bin/expect -f
+
+set timeout -1
+
+#Start the guest VM
+spawn vm /srv/vm/autopkgtest-sid.img -nographic
+
+expect "login: "
+send "root\r"
+
+expect "# "
+send "apt update && apt-get -y -o Dpkg::Options::=--force-confnew dist-upgrade\r"
+
+expect "# "
+send "apt-get --purge -y autoremove && apt-get clean\r"
+
+expect "# "
+send "poweroff\r"
+
+expect "# "
diff --git a/f25-update.exp b/f25-update.exp
new file mode 100755 (executable)
index 0000000..d4eaa34
--- /dev/null
@@ -0,0 +1,20 @@
+#!/usr/bin/expect -f
+
+set timeout -1
+
+#Start the guest VM
+spawn vm /srv/vm/f25.img -nographic
+
+expect "login: "
+send "a\r"
+
+expect "Password: "
+send "a\r"
+
+expect "$ "
+send "echo a | sudo --stdin dnf update -y\r"
+
+expect "$ "
+send "echo a | sudo --stdin poweroff\r"
+
+expect "$ "