diff options
author | Arthur She <arthur.she@linaro.org> | 2018-05-30 16:02:07 -0700 |
---|---|---|
committer | Arthur She <arthur.she@linaro.org> | 2018-05-30 16:02:07 -0700 |
commit | 0c7885975147ceddc0a18401a180d38e1414eeff (patch) | |
tree | 6e1d181d0dd9728a4e61c2a34bea30c72673ec10 | |
parent | d2c4e5a2e326e459b76bd1fbe08e5305caa345b0 (diff) |
modified: automated/linux/pritee_test_utility/pritee_test_utility.sh
-rwxr-xr-x | automated/linux/pritee_test_utility/pritee_test_utility.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/automated/linux/pritee_test_utility/pritee_test_utility.sh b/automated/linux/pritee_test_utility/pritee_test_utility.sh index 3162a93..ff311ea 100755 --- a/automated/linux/pritee_test_utility/pritee_test_utility.sh +++ b/automated/linux/pritee_test_utility/pritee_test_utility.sh @@ -1,8 +1,10 @@ #!/bin/sh -echo $1 -while read line; do - line="$(echo $line | tr -d '[:space:]')" +logfile="$1" +echo "logfile: $logfile" +while read -r line; do +# line="$(echo $line | tr -d '[:space:]')" + line=${line#[:space:]} case $line in TestArea:* ) ta=${line#TestArea:} @@ -15,4 +17,4 @@ while read line; do echo "$ta-$tc:: $result" ;; esac -done < $1 +done < "$logfile" |