File: wait4-shell-commands

package info (click to toggle)
wait4x 3.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 740 kB
  • sloc: makefile: 248; sh: 13
file content (10 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
set -ex

# Test wait4x running basic shell commands with different exit codes.

wait4x exec 'ls /tmp/wait4x-test' --exit-code 2
mkdir -p /tmp/wait4x-test
wait4x exec 'ls /tmp/wait4x-test' --exit-code 0
rmdir /tmp/wait4x-test
wait4x exec 'ls /tmp/wait4x-test' --exit-code 2