criu/test
Andrew Vagin 32452b2111 zdtm.py: umount root only if it was mounted
We get the stack trace if a test failed:

Test output: ================================
09:11:34.584:     4: PASS

 <<< ================================
Traceback (most recent call last):
  File "zdtm.py", line 922, in <module>
    do_run_test(tinfo[0], tinfo[1], tinfo[2], tinfo[3])
  File "zdtm.py", line 696, in do_run_test
    t.kill()
  File "zdtm.py", line 302, in kill
    self.__flavor.fini()
  File "zdtm.py", line 168, in fini
    subprocess.check_call(["mount", "--make-private", self.root])
  File "/usr/lib64/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['mount', '--make-private', '/tmp/criu-root-YN1t3X']' returned non-zero exit status 32
umount: /tmp/criu-root-YN1t3X: not mounted

Cc: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Andrew Vagin <avagin@virtuozzo.com>
Acked-by: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-11-25 15:30:32 +03:00
..
app-emu test/*Makefile: add/append PHONY targets 2014-01-11 09:12:35 +04:00
bers test: bers -- Add short help output 2014-08-13 15:50:54 +04:00
crit test: crit: use --pretty instead of dropped --format 2015-02-09 14:06:38 +03:00
ext-links test/ext-links: fix path to the ip tool 2014-06-24 22:50:17 +04:00
fault-injection test: check, that parasite can rollback itself (v2) 2013-08-06 15:11:12 +04:00
inhfd zdtm.py: Add inhfd tests for --inherit-fd option 2015-10-19 12:42:01 +03:00
jenkins jenkins: Fix path to zdtm.py in criu-fault 2015-11-23 13:22:08 +03:00
libcriu test: libcriu: switch to using swrk instead of service 2015-10-15 14:35:43 +03:00
mem-snap test/mem-snap: wait util a zdtm test isn't stopped 2015-08-21 21:13:43 +03:00
mounts test: Add test for ext-mount-map option 2015-04-10 18:05:57 +03:00
overlayfs other/overlayfs: don't use the shell-job option 2015-08-12 17:23:56 +03:00
pipes test/pipes: execute two test cases 2015-07-15 17:36:11 +03:00
rpc test/rpc: don't use the shell_job option 2015-08-25 16:00:37 +03:00
security test/other: save logs in the test directory 2015-05-29 15:00:50 +03:00
socketpairs Add test for dumping\restoring unnamed unix sockets. 2015-07-29 17:53:39 +03:00
tcp test: add a target to execute non-zdtm tests 2014-06-24 22:50:43 +04:00
unix-callback test/unix-callback: don't use the --shell-job optios 2015-04-27 15:03:23 +03:00
zdtm zdtm: check that the IP_FREEBIND is restored correctly 2015-11-23 12:42:53 +03:00
.gitignore gitignore: ignore a bunch of other generated stuff 2015-11-12 10:32:27 +03:00
app-emu.sh test: add a script for executing all app-emu test cases 2012-11-22 19:08:29 +04:00
env.sh test: create env.sh for environment setting 2013-08-20 14:52:34 +04:00
functions.sh test/app-emu: wait while tasks are dying before starting restore 2012-11-22 19:08:14 +04:00
inhfd.desc zdtm.py: Add inhfd tests for --inherit-fd option 2015-10-19 12:42:01 +03:00
Makefile test: execute other tests in a new session 2015-08-21 21:13:47 +03:00
Makefile.zdtm test: remove bashism from Makefile 2015-03-24 11:05:26 +03:00
maps.py zdtm: check that a process has the same set of VMS-s after restore 2013-09-23 15:23:12 +04:00
post-dump.sh fix error in tests when /bin/sh is not bash 2015-03-24 11:24:02 +03:00
zdtm.desc zdtm.py: Rework tests list generation 2015-10-12 13:05:02 +03:00
zdtm.py zdtm.py: umount root only if it was mounted 2015-11-25 15:30:32 +03:00
zdtm.sh zdtm: allow to execute tcp tests in network namespaces 2015-11-19 15:17:50 +03:00
zdtm_ct.c zdtm: fix compile errors of zdtm_ct 2014-08-26 12:52:39 +04:00
zdtm_mount_cgroups zdtm.py: Call zdtm_mount_cgroups in advance 2015-10-30 15:55:41 +04:00