From 93369ef9211c4618fdcef15980b82fcc2fb46ce9 Mon Sep 17 00:00:00 2001 From: Chase Qi Date: Tue, 26 Jul 2016 10:54:40 +0800 Subject: ubuntu: ltp: fix parse pattern ltp-pan print test case, result and exitcode in the format "%-30.30s %-10.10s %-5d\n". Most of the time, exitcode doesn't take all the 5 digital placeholder, in this case, there are spaces after the exitcode. That is why the current pattern doesn't work with the new lava-local-run I created. The current pattern actually works in LAVA instance, it is not able to match skipped tests though. Further investigation shows that the additional spaces are stripped off in LAVA's output for some reasons that I don't know. The new pattern in this patch fixed this issue and also able to match skipped tests. Change-Id: Iafcbd11a0bc3588eba51cafef53ce9082ab9aa36 Signed-off-by: Chase Qi --- ubuntu/ltp.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ubuntu') diff --git a/ubuntu/ltp.yaml b/ubuntu/ltp.yaml index ee9ab7c..73e085a 100644 --- a/ubuntu/ltp.yaml +++ b/ubuntu/ltp.yaml @@ -52,7 +52,8 @@ run: - './common/scripts/ltpfixup.sh -T $TST_CMDFILES -P /opt/ltp/build -S $SKIPFILE' parse: - pattern: "^(?!.+ED)(?P\\w+)\\s+(?P\\w+)\\s+\\d$" + pattern: "^(?!.+ED)(?P\\w+)\\s+(?PPASS|FAIL|CONF)\\s+\\d+" fixupdict: FAIL: fail PASS: pass + CONF: skip -- cgit v1.2.3