test 1001 needs a small delay between client part execution and test
result file verifications to allow the test server to completely write out all files
This commit is contained in:
parent
6c89e1b311
commit
72c58b0d1d
@ -71,6 +71,9 @@ http://%HOSTIP:%HTTPPORT/1001 -u auser:apasswd --digest -T log/1001 -x http://%
|
||||
<file name="log/1001">
|
||||
test
|
||||
</file>
|
||||
<postcheck>
|
||||
%SRCDIR/libtest/delay.pl 1
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
16
tests/libtest/delay.pl
Executable file
16
tests/libtest/delay.pl
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env perl
|
||||
# sleep for a number of seconds
|
||||
if ( $#ARGV != 0 )
|
||||
{
|
||||
print "Usage: $0 seconds\n";
|
||||
exit 1;
|
||||
}
|
||||
if ( $ARGV[0] =~ /(\d+)/ ) {
|
||||
sleep $1;
|
||||
exit 0;
|
||||
}
|
||||
else {
|
||||
print "Usage: $0 seconds\n";
|
||||
exit 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user