Commit c9bb1f38 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

[test.utils] Fixed issue with module not found

parent 38b640ee
Pipeline #46264 passed with stages
in 7 minutes and 22 seconds
......@@ -106,7 +106,8 @@ def atnt_database_directory():
if atnt_downloaded_directory:
return atnt_downloaded_directory
if os.path.isdir(atnt_default_directory):
if atnt_default_directory is not None and os.path.isdir(atnt_default_directory):
return atnt_default_directory
from bob.db.atnt.driver import download
......@@ -115,12 +116,9 @@ def atnt_database_directory():
atnt_downloaded_directory = tempfile.mkdtemp(prefix="atnt_db_")
logger.warn(
"Downloading the AT&T database to '%s' ...",
atnt_downloaded_directory,
)
logger.warn(
"To avoid this, please run bob_dbmanage.py atnt download."
"Downloading the AT&T database to '%s' ...", atnt_downloaded_directory,
)
logger.warn("To avoid this, please run bob_dbmanage.py atnt download.")
download(Namespace(output_dir=atnt_downloaded_directory))
# to avoid re-downloading in parallel test execution
......
Markdown is supported
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