[LNT] r349218 - Register hooks in command line importing

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 14 16:34:03 PST 2018


Author: cmatthews
Date: Fri Dec 14 16:34:03 2018
New Revision: 349218

URL: http://llvm.org/viewvc/llvm-project?rev=349218&view=rev
Log:
Register hooks in command line importing

Hooks were not being loaded when importing from the command line. Since
they contain data processing rules, we should have them loaded!

Modified:
    lnt/trunk/lnt/lnttool/import_data.py

Modified: lnt/trunk/lnt/lnttool/import_data.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/lnttool/import_data.py?rev=349218&r1=349217&r2=349218&view=diff
==============================================================================
--- lnt/trunk/lnt/lnttool/import_data.py (original)
+++ lnt/trunk/lnt/lnttool/import_data.py Fri Dec 14 16:34:03 2018
@@ -7,6 +7,7 @@ import click
 
 import lnt.formats
 from lnt.lnttool.common import submit_options, init_logger
+from lnt.server.db.rules_manager import register_hooks
 
 
 @click.command("import")
@@ -41,6 +42,8 @@ def action_import(instance_path, files,
     instance = lnt.server.instance.Instance.frompath(instance_path)
     config = instance.config
 
+    register_hooks()
+
     # Get the database.
     with contextlib.closing(config.get_database(database)) as db:
         session = db.make_session()




More information about the llvm-commits mailing list