Commit 5d62bc9e authored by Thomas Vincent's avatar Thomas Vincent
Browse files

Sync run_test.py with that of silx

parent b2cb4050
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# coding: utf-8 # coding: utf-8
# /*########################################################################## # /*##########################################################################
# #
# Copyright (c) 2015-2017 European Synchrotron Radiation Facility # Copyright (c) 2015-2018 European Synchrotron Radiation Facility
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal # of this software and associated documentation files (the "Software"), to deal
...@@ -115,7 +115,6 @@ except Exception as error: ...@@ -115,7 +115,6 @@ except Exception as error:
else: else:
logger.info("Numpy %s", numpy.version.version) logger.info("Numpy %s", numpy.version.version)
try: try:
import h5py import h5py
except Exception as error: except Exception as error:
...@@ -314,10 +313,10 @@ def import_project_module(project_name, project_dir): ...@@ -314,10 +313,10 @@ def import_project_module(project_name, project_dir):
if "--installed" in sys.argv: if "--installed" in sys.argv:
try: try:
module = importer(project_name) module = importer(project_name)
except ImportError: except Exception:
raise ImportError( logger.error("Cannot run tests on installed version: %s not installed or raising error.",
"%s not installed: Cannot run tests on installed version" % project_name)
PROJECT_NAME) raise
else: # Use built source else: # Use built source
build_dir = build_project(project_name, project_dir) build_dir = build_project(project_name, project_dir)
if build_dir is None: if build_dir is None:
......
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