Commit 3b38dd82 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

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: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent e634bb8d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
#!/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
+2 −4
Original line number Diff line number Diff line
#!/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