summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLumir Balhar <lbalhar@redhat.com>2019-02-18 17:48:55 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2019-02-19 13:51:48 +1100
commit625dd8aaf20f8fc403c30385c9a1d423fb8e3957 (patch)
treeeb7dfadcdde58254f3d13c338fcf1cbc3a0443d7
parent364631626bb78a40c1a1c70d5502ab0e953a7829 (diff)
downloaddevice-tree-compiler-625dd8aaf20f8fc403c30385c9a1d423fb8e3957.tar.gz
pylibfdt: Change how passing tests are recognized
When some warning appears in test result, "ok" is still at the end of the line but without three dots. Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Message-Id: <20190218164856.23861-4-frenzy@frenzy.cz> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rwxr-xr-xtests/run_tests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index ca3fc86..1fa14ff 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -940,7 +940,7 @@ pylibfdt_tests () {
# and the summary line for total tests (e.g. 'Ran 17 tests in 0.002s').
# We could add pass + fail to get total tests, but this provides a useful
# sanity check.
- pass_count=$(grep "\.\.\. ok$" $TMP | wc -l)
+ pass_count=$(grep "ok$" $TMP | wc -l)
fail_count=$(grep "^ERROR: " $TMP | wc -l)
total_tests=$(sed -n 's/^Ran \([0-9]*\) tests.*$/\1/p' $TMP)
cat $TMP