#!/usr/bin/env bash
#
# Copyright IBM Corp. 2017
#
# Usage: test_skip <testname> <reason>
#
# Announce and record that a single test case was skipped, including an
# optional reason text. Must be run after testsuite_init.
#

TOPDIR=$(readlink -f $(dirname $0)/..) && test -d "$TOPDIR" \
    && source "$TOPDIR/bin/common"
TESTNAME="$1"
REASON="${*:2}" ; [ -z "$REASON" ] && REASON="<no reason given>"

t_announce "$TESTNAME"
t_skip "$TESTNAME"
echo
t_detail "REASON" "$REASON" >>"$LOGFILE"
t_detail "REASON" "$REASON" | t_indent
