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
echo "===================== importability ====================="
echo " > try 'from $JOB_NAME.top_level_interface import *'"
python -c "from $JOB_NAME.top_level_interface import *"
if [ "$?" != 0 ]; then
import_status=$?
echo "Failed!"
import_status=$?
if [ "$import_status" != 0 ]; then
echo "Import failed!"
else
echo "Done!"
echo "Import done!"
fi
# 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