From cd905192b58518556718830cde56d70b7e4c81cc Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 28 Aug 2020 18:23:09 +0200 Subject: [PATCH] btrfs-progs: tests: add helper to print skipped operations For workarounds or known missing support add helper to print a notification about that, when _not_run is not suitable. Signed-off-by: David Sterba --- tests/common | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/common b/tests/common index b3f5cc13..94b9d24c 100644 --- a/tests/common +++ b/tests/common @@ -64,6 +64,13 @@ _log_stdout() tee -a "$RESULTS" } +# print a message to stdout and to log that something was skipped +_log_skipped() +{ + echo " [SKIPPED] $*" | tee -a "$RESULTS" + exit 0 +} + _not_run() { echo " [NOTRUN] $*"