Simplify run_unit_tests
top_dir=$(cd $(dirname $(dirname $0)) && pwd)
-dirs="
- $top_dir/sdk
- $top_dir/daemon
- $top_dir/cli
- $top_dir/contracts/schema
- $top_dir/contracts/track_and_trace
-"
-exitcode=0
-
-for dir in $dirs; do
- cd $dir
- echo "$dir"
-
- echo "-- tests"
+ cd $top_dir
result=$(cargo test)
test_exit=$?
@@ -42,6 +29,4 @@ for dir in $dirs; do
exitcode=1
fi
-done
-
exit $exitcode
