summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-03-09 16:14:16 +1100
committerChris Johns <chrisj@rtems.org>2017-03-14 13:54:21 +1100
commiteb733202ad13afd06d340422fcb67fbcf1533be0 (patch)
treec642e1cfa0388e82e3ed05a6494004afe54df9e2 /tools
parentlibbsp/mips/shared/irq/i8259.c: Add include of rtems/bspIo.h (diff)
downloadrtems-eb733202ad13afd06d340422fcb67fbcf1533be0.tar.bz2
Fix rtems-test-check with a BSD sed.
BSD sed does not support '\t' and treated '[ \t]' as 3 characters. This patch uses a standard method of supporting blank spaces.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build/rtems-test-check10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/build/rtems-test-check b/tools/build/rtems-test-check
index 108b7881c2..923af49306 100755
--- a/tools/build/rtems-test-check
+++ b/tools/build/rtems-test-check
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# Copyright 2014, 2016 Chris Johns <chrisj@rtems.org>
+# Copyright 2014, 2016, 2017 Chris Johns <chrisj@rtems.org>
# All rights reserved
#
@@ -74,21 +74,21 @@ if test -f $testdata; then
state=$(echo $line | sed -e "s/:.*//g")
case $state in
include)
- inf=$(echo $line | sed -e "s/include://g" -e 's/^[ \t]//;s/[ \t]$//')
+ inf=$(echo $line | sed -e 's/include://g;s/[[:blank:]]//g')
if test -f $includepath/$inf; then
ntd="$includepath/$inf $ntd"
fi
;;
exclude)
- line=$(echo $line | sed -e "s/exclude://g" -e 's/^[ \t]//;s/[ \t]$//')
+ line=$(echo $line | sed -e 's/exclude://g;s/[[:blank:]]//g')
excluded_tests="${excluded_tests} $line"
;;
expected-fail)
- line=$(echo $line | sed -e "s/expected-fail://g" -e 's/^[ \t]//;s/[ \t]$//')
+ line=$(echo $line | sed -e 's/expected-fail://g;s/[[:blank:]]//g')
expected_fails="${expected_fails} $line"
;;
indeterminate)
- line=$(echo $line | sed -e "s/indeterminate://g" -e 's/^[ \t]//;s/[ \t]$//')
+ line=$(echo $line | sed -e 's/indeterminate://g;s/[[:blank:]]//g')
indeterminates="${indeterminates} $line"
;;
*)