Skip to content

Commit

Permalink
[TASK] Add testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ochorocho committed Jul 7, 2024
1 parent 5694c32 commit bddf92a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,9 @@

echo $output

version=$(echo "$output" | head -2 | tail -1 | yq '.raw.["DDEV version"]')
version=$(echo "$output" | tail -n 1 | yq '.raw.["DDEV version"]')
regex='^v([0-9]+)\.([0-9]+)\.([0-9]+)$'


echo "############################################################################"
echo $(echo "$output" | tail -n 1)
echo "############################################################################"
echo $version

[[ $version =~ $regex ]]
[ "$status" -eq 0 ]
}
Expand Down

0 comments on commit bddf92a

Please sign in to comment.