Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Dec 5, 2023
1 parent d2ad82d commit e30a63f
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions src/tests/test_zksync_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ verify_result () {
RESULT_COMMON+=$?
RESULT=$?
if [ $RESULT -eq 0 ]; then
echo success
echo ""
echo -----------> SUCCESS <-----------
else
echo failed
echo ""
echo -----------> FAILED <-----------
fi
}

Expand Down Expand Up @@ -84,26 +86,26 @@ echo ">>> zksync-cli dev clean"
npx zksync-cli dev clean
verify_result

echo ""
echo ">>> zksync-cli dev install [email protected]"
#echo ""
#echo ">>> zksync-cli dev install [email protected]"

npx zksync-cli dev install [email protected]
verify_result
#npx zksync-cli dev install [email protected]
#verify_result

##########


echo ""
echo ">>> zksync-cli dev update zksync-web3"
#echo ""
#echo ">>> zksync-cli dev update zksync-web3"

npx zksync-cli dev update zksync-web3
verify_result
#npx zksync-cli dev update zksync-web3
#verify_result

echo ""
echo ">>> zksync-cli dev uninstall zksync-web3"
#echo ""
#echo ">>> zksync-cli dev uninstall zksync-web3"

npx zksync-cli dev uninstall zksync-web3
verify_result
#npx zksync-cli dev uninstall zksync-web3
#verify_result

echo ""
echo ">>> zksync-cli dev modules"
Expand All @@ -112,15 +114,14 @@ npx zksync-cli dev modules
verify_result
##########

echo ""
echo ">>> zksync-cli create"
yes | npx zksync-cli create
verify_result
#echo ""
#echo ">>> zksync-cli create"
#yes | npx zksync-cli create
#verify_result

if [ $RESULT_COMMON -eq 0 ]; then
echo success
else
echo ERROR: RESULT_COMMON = $RESULT_COMMON
exit 1 # terminate and indicate error
fi

0 comments on commit e30a63f

Please sign in to comment.