Thread (24 messages) 24 messages, 3 authors, 2019-01-17
STALE2738d
Revisions (3)
  1. v2 current
  2. v3 [diff vs current]
  3. v4 [diff vs current]

[PATCH blktests v2 08/16] check: Introduce group_exit() function

From: Shin'ichiro Kawasaki <hidden>
Date: 2019-01-10 09:38:05
Subsystem: the rest · Maintainer: Linus Torvalds

This optional function can be defined by a test group rc script. When
defined, it is executed after all tests of the group complete, allowing
cleaning up resources used by all tests of the group.

Signed-off-by: Shin'ichiro Kawasaki <redacted>
---
 check | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/check b/check
index 141ebb6..360f61b 100755
--- a/check
+++ b/check
@@ -467,6 +467,11 @@ _run_group() {
 			ret=1
 		fi
 	done
+
+	if declare -fF group_exit >/dev/null ; then
+		group_exit
+	fi
+
 	return $ret
 }
 
-- 
2.20.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help