Commit 16ddadaf authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

consider importability in exit code

parent bc04c97c
Pipeline #147 passed with stages
in 11 seconds
...@@ -46,11 +46,11 @@ coverage html ...@@ -46,11 +46,11 @@ coverage html
echo "===================== importability =====================" echo "===================== importability ====================="
echo " > try 'from $JOB_NAME.top_level_interface import *'" echo " > try 'from $JOB_NAME.top_level_interface import *'"
python -c "from $JOB_NAME.top_level_interface import *" python -c "from $JOB_NAME.top_level_interface import *"
if [ "$?" != 0 ]; then import_status=$?
import_status=$? if [ "$import_status" != 0 ]; then
echo "Failed!" echo "Import failed!"
else else
echo "Done!" echo "Import done!"
fi fi
# the exit value is determined from unit tests # the exit value is determined from unit tests
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment