diff --git a/tests.sh b/tests.sh index bbbb06e..3cbb16e 100755 --- a/tests.sh +++ b/tests.sh @@ -41,6 +41,6 @@ trap "echo [$MSG_BASE Lot of Arguments FAIL]" ERR ./tests-lot-arg.sh | grep RequestId > /dev/null echo "[$MSG_BASE Lot of Arguments OK]" -trap "echo [$MSG_BASE ReadConsumptionAccount --FromDate $(date -d "yesterday" '+%F') --ToDate $(date "+%F") FAIL]" ERR -./oapi-cli ReadConsumptionAccount --FromDate $(date -d "yesterday" '+%F') --ToDate $(date "+%F") | grep Operation > /dev/null -echo "[$MSG_BASE ReadConsumptionAccount --FromDate $(date -d "yesterday" '+%F') --ToDate $(date "+%F") OK]" +trap "echo [$MSG_BASE ReadConsumptionAccount --FromDate $(date --date="-5 days" '+%F') --ToDate $(date --date="-1 days" "+%F") FAIL]" ERR +./oapi-cli ReadConsumptionAccount --FromDate $(date --date="-5 days" '+%F') --ToDate $(date --date="-1 days" "+%F") | grep Operation > /dev/null +echo "[$MSG_BASE ReadConsumptionAccount --FromDate $(date --date="-5 days" '+%F') --ToDate $(date --date="-1 days" "+%F") OK]"