~ubuntu-branches/debian/sid/autopkgtest/sid

« back to all changes in this revision

Viewing changes to tests/testpkg-reboot/debian/tests/p

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2015-05-19 14:45:34 UTC
  • mfrom: (110.2.18 sid)
  • Revision ID: package-import@ubuntu.com-20150519144534-df3wl1tqz6ac2rek
* Add tests/testpkg-{simple,reboot,reboot-prepare}: Very simple stub
  packages for manual testing.
* VirtSubproc, cmd_reboot(): Disconnect the backgrounded reboot command from
  stdout/err, to avoid it getting killed by the ssh runner. (LP: #1454735)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
if [ "$ADT_REBOOT_MARK" = phase1 ]; then
 
3
    echo "continuing test after reboot"
 
4
else
 
5
    echo "beginning test"
 
6
    /tmp/autopkgtest-reboot phase1
 
7
    touch /var/pwned
 
8
fi
 
9
echo "end of test"
 
10
if [ -e /var/pwned ]; then
 
11
    echo "/var/pwned exists!!!" >&2
 
12
    exit 1
 
13
fi