scripts: allow to skip travis specific parts in travis-tests

Submitted by Andrei Vagin on Oct. 8, 2016, 2:15 a.m.

Details

Message ID 1475892949-22403-1-git-send-email-avagin@openvz.org
State Superseded
Series "scripts: allow to skip travis specific parts in travis-tests"
Headers show

Commit Message

Andrei Vagin Oct. 8, 2016, 2:15 a.m.
From: Andrei Vagin <avagin@virtuozzo.com>

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

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

Patch hide | download patch | download mbox

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

Comments

Pavel Emelianov Oct. 10, 2016, 11:04 a.m.
On 10/08/2016 05:57 AM, Patchwork wrote:
> == Series Details ==
> 
> Series: scripts: allow to skip travis specific parts in travis-tests
> URL   : https://patchwork.criu.org/series/655/
> State : failure
> 
> == Logs ==
> 
> For more details see: https://travis-ci.org/criupatchwork/criu/builds/165982758


...
	$ sudo make -C scripts/travis $TR_ARCH
	make: Entering directory `/home/travis/build/criupatchwork/criu/scripts/travis'
	./travis-tests
	./travis-tests: 4: ./travis-tests: Syntax error: "(" unexpected


Something makes me think it's a patch failure :\