File: tappy

package info (click to toggle)
tap.py 3.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 476 kB
  • sloc: python: 1,808; makefile: 164; sh: 40
file content (21 lines) | stat: -rwxr-xr-x 359 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

tappy - 2>&1 <<EOF
ok 1
1..1
EOF

if printf "1..1\nnot ok 1 - it's OK, this was meant to happen\n" | tappy - 2>&1; then
  echo "tappy failure did not result in unsuccessful exit status"
  exit 1
else
  e=$?
  if [ "$e" = 1 ]; then
    echo "exit status was 1 as expected"
  else
    echo "exit status was unexpected: $e"
    exit 1
  fi
fi