diff options
author | Mike Rapoport <rppt@linux.vnet.ibm.com> | 2017-05-31 12:51:41 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@virtuozzo.com> | 2017-09-16 12:29:43 +0300 |
commit | 516b7795517bfccc1254c7b0e027856c33d75383 (patch) | |
tree | bcb5fd9d73677245a6b91aaba1eceb34f01c0354 /scripts/travis | |
parent | bd39d5edc5137eb03fad7b68d5cee6c6f810285b (diff) |
travis-test: select tests skipped by lazy-pages pass more carefully
Most of zdtm test should pass with --lazy-pages with kernels newer than
4.11.
Some test excluded for older kernels surprisingly pass even now, mainly
becuase they do not actually stress userfaultfd, which will be fixed in the
upcoming commits :)
The cmdlinenv00 fails even with kernel 4.11 because of a race between uffd
and gup in the case external process reads /proc/<pid>/cmdline before
memory containing the command line is populated.
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'scripts/travis')
-rwxr-xr-x | scripts/travis/travis-tests | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/travis/travis-tests b/scripts/travis/travis-tests index 8c708e90e..8b1a632f1 100755 --- a/scripts/travis/travis-tests +++ b/scripts/travis/travis-tests @@ -70,7 +70,17 @@ chmod 0777 test/zdtm/static chmod 0777 test/zdtm/transition ./test/zdtm.py run -a -p 2 -./test/zdtm.py run -a -p 2 --lazy-pages -x maps007 + +KERN_MAJ=`uname -r | cut -d. -f1` +KERN_MIN=`uname -r | cut -d. -f2` +if [ $KERN_MAJ -ge "4" ] && [ $KERN_MIN -ge "11" ]; then + LAZY_EXCLUDE="-x cmdlinenv00" +else + LAZY_EXCLUDE="-x maps007 -x fork -x fork2 -x uffd-events -x cgroupns + -x socket_listen -x socket_listen6 -x cmdlinenv00 + -x socket_close_data01 -x file_read" +fi +./test/zdtm.py run -a -p 2 --lazy-pages $LAZY_EXCLUDE --keep-going --report report bash ./test/jenkins/criu-fault.sh bash ./test/jenkins/criu-fcg.sh |