summaryrefslogtreecommitdiff
path: root/ubuntu
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2015-06-22 18:40:13 -0700
committerArthur She <arthur.she@linaro.org>2015-06-22 18:40:13 -0700
commit5ea5bbc33b0275c6359a84abe84ee9c66a0eed84 (patch)
tree85b488c91cb953e7dc76d8f0f6e7ab46d47bd90f /ubuntu
parent334690208fed81ddaf736b08501632c443cd2d29 (diff)
ubuntu: ubuntu/script/rt-tests-parasr.sh
Remove grep option 'P' that was not supported by busybox. Change-Id: Ibff9a7b5c0ae539aa32368dc0f7a43bbdc1c5f7e
Diffstat (limited to 'ubuntu')
-rwxr-xr-xubuntu/scripts/rt-tests-parser.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubuntu/scripts/rt-tests-parser.sh b/ubuntu/scripts/rt-tests-parser.sh
index 4d9b1c7..b5cea6e 100755
--- a/ubuntu/scripts/rt-tests-parser.sh
+++ b/ubuntu/scripts/rt-tests-parser.sh
@@ -3,7 +3,7 @@
LOG=$1
# Find the last line number which starting with control character
-N=`grep -Pn "\x1b" ${LOG} | tail -n1 | cut -d':' -f1`
+N=`grep -n "#0:" ${LOG} | tail -n1 | cut -d':' -f1`
# The rest of lines from #N is the final test result we want
sed -i "s/\x1b\[[0-9]A//" ${LOG} # Remove the control code
sed -n "${N},$ p" ${LOG} > tmp.log