File: test_skip

package info (click to toggle)
lcov 2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,464 kB
  • sloc: perl: 27,911; sh: 7,320; xml: 6,982; python: 1,152; makefile: 597; cpp: 520; ansic: 176
file content (20 lines) | stat: -rwxr-xr-x 529 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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