From 81771255201ffb921ff4c4600edb2c908a24d010 Mon Sep 17 00:00:00 2001 From: Chase Qi Date: Tue, 18 Aug 2015 16:09:08 +0800 Subject: ubuntu: ltp: fix out of disk space issue The current approach is download and install LTP in test folder, which causes the size of the folder is very big. Once the compressed size of the folder exceed the disk space available on master image, it will lead to result collection failure. Alternatively, we can download and install LTP under /opt/ltp directory. In this way, it addresses the out of disk space issue, and we only need compile and install LTP once for multiple LTP lava_test_shells in the same LAVA job. Change-Id: I5f5c37c38c2cbabb77c1a2227c5336a93cf872f2 Signed-off-by: Chase Qi Signed-off-by: Milosz Wasilewski --- ubuntu/ltp.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ubuntu') diff --git a/ubuntu/ltp.yaml b/ubuntu/ltp.yaml index d1eb43c..80eeb5a 100644 --- a/ubuntu/ltp.yaml +++ b/ubuntu/ltp.yaml @@ -20,6 +20,9 @@ metadata: install: steps: - 'VERSION=20150420' + - 'rm -rf /opt/ltp' + - 'mkdir -p /opt/ltp' + - 'cd /opt/ltp' - 'wget http://sourceforge.net/projects/ltp/files/LTP%20Source/ltp-$VERSION/ltp-full-$VERSION.tar.xz' - 'tar --strip-components=1 -Jxf ltp-full-$VERSION.tar.xz' - 'mkdir build' @@ -46,7 +49,7 @@ params: run: steps: - - './common/scripts/ltpfixup.sh -T $TST_CMDFILES -P $(readlink -f build) -S $SKIPFILE' + - './common/scripts/ltpfixup.sh -T $TST_CMDFILES -P /opt/ltp/build -S $SKIPFILE' parse: pattern: "^(?!.+ED)(?P\\w+)\\s+(?P\\w+)\\s+\\d$" -- cgit v1.2.3