Skip to content

Commit

Permalink
ndctl/test: correctly adjust rc for skip/fail
Browse files Browse the repository at this point in the history
commit ea220a2 upstream

The exit code for daxdev-errors wasn't being set correctly to
distinguish a skipped test from a failure. Fix it by setting rc to 77
prior to probing for nfit_test, and to 1 after it.

Signed-off-by: Vishal Verma <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
  • Loading branch information
stellarhopper authored and djbw committed Nov 17, 2017
1 parent 16c7c88 commit a323582
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/daxdev-errors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ $NDCTL disable-region $BUS all
$NDCTL zero-labels $BUS all
$NDCTL enable-region $BUS all

rc=1

query=". | sort_by(.available_size) | reverse | .[0].dev"
region=$($NDCTL list $BUS -t pmem -Ri | jq -r "$query")

Expand Down

0 comments on commit a323582

Please sign in to comment.