[CRIU] [PATCH] scripts: allow to skip travis specific parts in travis-tests

Andrei Vagin avagin at openvz.org
Fri Oct 7 19:15:49 PDT 2016


From: Andrei Vagin <avagin at virtuozzo.com>

We are going to use this script for testing linux-next.

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 scripts/travis/travis-tests | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/scripts/travis/travis-tests b/scripts/travis/travis-tests
index 202f34a..fca7248 100755
--- a/scripts/travis/travis-tests
+++ b/scripts/travis/travis-tests
@@ -1,18 +1,25 @@
 #!/bin/sh
 set -x -e
 
-ulimit -c unlimited
+function travis_prep() {
+	[ -n "$SKIP_TRAVIS_PREP" ] && return
+
+	cd ../../
+
+	service apport stop
 
-cd ../../
+	apt-get update -qq
+	apt-get install -qq protobuf-c-compiler libprotobuf-c0-dev libaio-dev	\
+		libprotobuf-dev protobuf-compiler python-ipaddr libcap-dev	\
+		libnl-3-dev gcc-multilib libc6-dev-i386 gdb bash python-protobuf
+	chmod a+x $HOME
+}
 
-service apport stop
+travis_prep
+
+ulimit -c unlimited
 echo "|`pwd`/test/abrt.sh %P %p %s %e" > /proc/sys/kernel/core_pattern
 
-apt-get update -qq
-apt-get install -qq protobuf-c-compiler libprotobuf-c0-dev libaio-dev	\
-	libprotobuf-dev protobuf-compiler python-ipaddr libcap-dev	\
-	libnl-3-dev gcc-multilib libc6-dev-i386 gdb bash python-protobuf
-chmod a+x $HOME
 export GCOV=1
 make
 make -C test/zdtm
-- 
2.7.4



More information about the CRIU mailing list