diff options
Diffstat (limited to 'tests/redirect.at')
-rw-r--r-- | tests/redirect.at | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/redirect.at b/tests/redirect.at index 7860736..12fb20f 100644 --- a/tests/redirect.at +++ b/tests/redirect.at | |||
@@ -17,2 +17,3 @@ | |||
17 | AT_SETUP([stdout redirection]) | 17 | AT_SETUP([stdout redirection]) |
18 | AT_KEYWORDS([redirect]) | ||
18 | 19 | ||
@@ -21,3 +22,2 @@ PIES_XFAIL_CHECK | |||
21 | PIES_CONTROL_INIT | 22 | PIES_CONTROL_INIT |
22 | comp_pid_file=$PWD/comp.pid | ||
23 | outfile=$PWD/out | 23 | outfile=$PWD/out |
@@ -26,3 +26,3 @@ component test { | |||
26 | mode respawn; | 26 | mode respawn; |
27 | command "$auxdir/respawn -tag respawn -append -pid $comp_pid_file"; | 27 | command "echo pass"; |
28 | stdout file "$outfile"; | 28 | stdout file "$outfile"; |
@@ -36,4 +36,4 @@ while : | |||
36 | do | 36 | do |
37 | if test -f $comp_pid_file; then | 37 | if test -f $outfile; then |
38 | lines=`wc -l $comp_pid_file | awk '{print $1}'` | 38 | lines=`lines $outfile` |
39 | if test "$lines" -ge 2 ; then | 39 | if test "$lines" -ge 2 ; then |
@@ -55,4 +55,4 @@ head -2 $outfile | |||
55 | [0], | 55 | [0], |
56 | [respawn: start | 56 | [pass |
57 | respawn: stop | 57 | pass |
58 | ]) | 58 | ]) |