aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Savoye <rob@senecass.com>2020-05-19 11:39:28 -0600
committerRob Savoye <rob@senecass.com>2020-05-19 11:39:28 -0600
commite3afe9014f19bc410552fcdad5ad4eaf1aa6aeb3 (patch)
treeec98067ed776e149935567796742dc516ea539ed
parent28146cef0ebb3b151ebb4150c226aa37fa119271 (diff)
downloaddejagnu-e3afe9014f19bc410552fcdad5ad4eaf1aa6aeb3.zip
dejagnu-e3afe9014f19bc410552fcdad5ad4eaf1aa6aeb3.tar.gz
dejagnu-e3afe9014f19bc410552fcdad5ad4eaf1aa6aeb3.tar.bz2
testrun is an array.
-rwxr-xr-xcontrib/database/importxml.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/database/importxml.py b/contrib/database/importxml.py
index a4a4a4e..2075942 100755
--- a/contrib/database/importxml.py
+++ b/contrib/database/importxml.py
@@ -54,11 +54,11 @@ except Exception as e:
print("ERROR: Query failed to fetch! %r" % e.pgerror)
print("ERROR: Query that failed: %r" % query)
quit()
-testrun = dbcursor.fetchone()
-if testrun is None:
+tmp = dbcursor.fetchone()
+if tmp is None:
testrun = "1"
else:
- testrun = str(int(testrun) + 1)
+ testrun = str(int(tmp[0]) + 1)
#
# Parse the XML file from the test run