test: Corrected and documents -v vs -V transaction testing
This commit is contained in:
parent
ea64bb3f3d
commit
839077de57
4 changed files with 7 additions and 6 deletions
|
|
@ -152,8 +152,8 @@ if [ $BE -ne 0 ]; then
|
|||
if [ $? -ne 0 ]; then
|
||||
err
|
||||
fi
|
||||
new "start backend -s init -f $cfg -l f$flog -- -t -V \"/x/y[a='$errnr']\""
|
||||
start_backend -s init -f $cfg -l f$flog -- -t -V "/x/y[a='$errnr']" # -t means transaction logging
|
||||
new "start backend -s init -f $cfg -l f$flog -- -t -v \"/x/y[a='$errnr']\""
|
||||
start_backend -s init -f $cfg -l f$flog -- -t -v "/x/y[a='$errnr']" # -t means transaction logging
|
||||
fi
|
||||
|
||||
new "wait backend"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
# Transaction functionality: Start from startup and ensure
|
||||
# Transaction functionality: Start from startup and ensure
|
||||
# first transaction is OK including diff
|
||||
# See eg https://github.com/clicon/clixon/issues/596
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ function checklog(){
|
|||
t=$(grep -n "transaction_log $s" $flog)
|
||||
if [ -z "$t" ]; then
|
||||
echo -e "\e[31m\nError in Test$testnr [$testname]:"
|
||||
if [ $# -gt 0 ]; then
|
||||
if [ $# -gt 0 ]; then
|
||||
echo "Not found \"$s\" on line $l0"
|
||||
echo
|
||||
fi
|
||||
|
|
@ -82,7 +82,7 @@ function checklog(){
|
|||
l1=$(echo "$t" | awk -F ":" '{print $1}')
|
||||
if [ $l1 -ne $l0 ]; then
|
||||
echo -e "\e[31m\nError in Test$testnr [$testname]:"
|
||||
if [ $# -gt 0 ]; then
|
||||
if [ $# -gt 0 ]; then
|
||||
echo "Expected match on line $l0, found on $l1"
|
||||
echo
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue