diff --git a/pipelines/build.sh b/pipelines/build.sh index f4168d3f3777a54e07a0fc4da8a2df1a142192b7..d04e48453952696e1385216e2ea32cfc2debb2ef 100644 --- a/pipelines/build.sh +++ b/pipelines/build.sh @@ -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