From 3b38dd8282af2d43db066a7e0897a264c5183b12 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 5 Jan 2016 15:31:56 -0700 Subject: [PATCH] autotest: remove extra process_core invocations The top-level autotest.sh script will catch any core dumps at the end of the test run, so sprinkling process_core in the individual test scripts is unnecessary. Also make the per-component test scripts run with 'set -e' (exit on error). Change-Id: I85f124e164ca93d35eaf672a428a841c119c550b Signed-off-by: Daniel Verkamp --- test/lib/memory/memory.sh | 3 ++- test/lib/nvme/nvme.sh | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/test/lib/memory/memory.sh b/test/lib/memory/memory.sh index 4b4f01f76..c695bbe16 100755 --- a/test/lib/memory/memory.sh +++ b/test/lib/memory/memory.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e + testdir=$(readlink -f $(dirname $0)) rootdir="$testdir/../../.." source $rootdir/scripts/autotest_common.sh @@ -8,7 +10,6 @@ timing_enter memory timing_enter vtophys $testdir/vtophys -process_core timing_exit vtophys timing_exit memory diff --git a/test/lib/nvme/nvme.sh b/test/lib/nvme/nvme.sh index 344b74c6a..15ff7bf74 100755 --- a/test/lib/nvme/nvme.sh +++ b/test/lib/nvme/nvme.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e + testdir=$(readlink -f $(dirname $0)) rootdir="$testdir/../../.." source $rootdir/scripts/autotest_common.sh @@ -16,23 +18,19 @@ timing_exit unit timing_enter aer $testdir/aer/aer -process_core timing_exit aer timing_enter identify $rootdir/examples/nvme/identify/identify -process_core timing_exit identify timing_enter perf $rootdir/examples/nvme/perf/perf -q 128 -w read -s 12288 -t 5 -process_core timing_exit perf #Now test nvme reset function timing_enter reset $testdir/reset/reset -q 64 -w write -s 4096 -t 15 -process_core timing_exit reset