]> sourceware.org Git - bunsen.git/commitdiff
i-dejagnu-parser: don't push target_board key if empty (e.g., non-dejagnu)
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 11 Sep 2024 14:56:38 +0000 (10:56 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Wed, 11 Sep 2024 14:56:38 +0000 (10:56 -0400)
bin/i-dejagnu-parser

index e11389dffa85832b1897a56281c51f43da876ecc..bb9d57c32e5b7f2ed31b147dbf65e9372ced0c72 100755 (executable)
@@ -264,11 +264,12 @@ def parse_dejagnu_log_sum(db: sqlite3.Connection, commit: git.Commit, trid: int,
             # these.
             sumfile_kv.update({tool+"_version":r"^([^#].+)$"})
 
-    target_variation_names = " ".join(sorted(list(target_variations))) # lightly canonicalize
-    db.execute("insert or ignore into testrun_kv (tr, key, value) values (?, ?, ?);",
-               (trid, 'target_board', target_variation_names))
-    db.commit()
-    logging.debug("found key target_board value %s", target_variation_names)
+    if len(target_variations)>0:
+        target_variation_names = " ".join(sorted(list(target_variations))) # lightly canonicalize
+        db.execute("insert or ignore into testrun_kv (tr, key, value) values (?, ?, ?);",
+                   (trid, 'target_board', target_variation_names))
+        db.commit()
+        logging.debug("found key target_board value %s", target_variation_names)
             
     # reject testruns with .sum files that are not parseable as proper dejagnu
     # e.g. glibc
This page took 0.02929 seconds and 5 git commands to generate.