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 <dsterba@suse.com>
This commit is contained in:
David Sterba 2020-08-28 18:23:09 +02:00
parent 9f5df56f73
commit cd905192b5

View File

@ -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] $*"