fix(functional-testsuite): timeout shorter, 2s => 0.2s
This commit is contained in:
parent
3b538cbb79
commit
0c23863580
1 changed files with 5 additions and 5 deletions
|
|
@ -157,7 +157,7 @@ test_str() {
|
|||
|
||||
# Arg
|
||||
echo -e -n $Blue "= [ARG] " $Color_Off
|
||||
timeout 2 $executable -c "$2" &> $output
|
||||
timeout 0.2 $executable -c "$2" &> $output
|
||||
actual_code=$?
|
||||
$ref_executable -c "$2" &> $ref_output
|
||||
ref_code=$?
|
||||
|
|
@ -166,7 +166,7 @@ test_str() {
|
|||
|
||||
# Script
|
||||
echo -e -n $Blue "= [SCRIPT]" $Color_Off
|
||||
timeout 2 $executable "$tmp_script" &> $output
|
||||
timeout 0.2 $executable "$tmp_script" &> $output
|
||||
actual_code=$?
|
||||
$ref_executable "$tmp_script" &> $ref_output
|
||||
ref_code=$?
|
||||
|
|
@ -175,7 +175,7 @@ test_str() {
|
|||
|
||||
# Stdin
|
||||
echo -e -n $Blue "= [STDIN] " $Color_Off
|
||||
timeout 2 $executable < "$tmp_script" &> $output
|
||||
timeout 0.2 $executable < "$tmp_script" &> $output
|
||||
actual_code=$?
|
||||
$ref_executable < "$tmp_script" &> $ref_output
|
||||
ref_code=$?
|
||||
|
|
@ -204,7 +204,7 @@ test_script() {
|
|||
|
||||
# Script
|
||||
echo -e -n "= [SCRIPT] "
|
||||
timeout 2 $executable "$tmp_script" &> $output
|
||||
timeout 0.2 $executable "$tmp_script" &> $output
|
||||
actual_code=$?
|
||||
$ref_executable "$tmp_script" &> $ref_output
|
||||
ref_code=$?
|
||||
|
|
@ -213,7 +213,7 @@ test_script() {
|
|||
|
||||
# Stdin
|
||||
echo -e -n "= [STDIN] "
|
||||
timeout 2 $executable < "$tmp_script" &> $output
|
||||
timeout 0.2 $executable < "$tmp_script" &> $output
|
||||
actual_code=$?
|
||||
$ref_executable < "$2" &> $ref_output
|
||||
ref_code=$?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue