commit | 10f1592ecb34bdbf2d7c62736aaf987df2fdd511 | [log] [tgz] |
---|---|---|
author | Thomas Preud'homme <thomasp@graphcore.ai> | Wed Oct 09 14:21:23 2019 +0100 |
committer | Thomas Preud'homme <thomasp@graphcore.ai> | Fri Jan 17 19:04:38 2020 +0000 |
tree | c60cceaa1dfcd33af485f0f69ba690ecc9dcf8f5 | |
parent | 72b33744a9ae268bd37940880eca8f35d66c10cc [diff] |
[LNT][NFC] Fix global import in function Summary: The _load_dependencies() function in lnt.lnttool.admin import some modules in the global namespace by making the module name global and then doing imports. However the language reference for global statements forbids this: "Names listed in a global statement must not be defined as formal parameters or in a for loop control target, class definition, function definition, or import statement." This commit makes use of importlib.import_module wrapper instead of the import statement to respect this restriction. Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls, PrzemekWirkus Reviewed By: PrzemekWirkus Subscribers: PrzemekWirkus, leandron, MatzeB, llvm-commits Differential Revision: https://reviews.llvm.org/D68779
This directory and its subdirectories contain the LLVM nightly test infrastructure. This is technically version “4.0” of the LLVM nightly test architecture.
The infrastructure has the following layout:
$ROOT/lnt - Top-level Python ‘lnt’ module
$ROOT/lnt/server/db - Database schema, utilities, and examples of the LNT plist format.
$ROOT/docs - Sphinx documentation for LNT.
$ROOT/tests - Tests for the infrastructure.
For more information, see the web documentation, or docs/.