Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 39e8fc9f authored by kraus's avatar kraus
Browse files

if we can't find stat variable then test is broken

parent 1d986fe1
No related branches found
No related tags found
No related merge requests found
......@@ -197,7 +197,7 @@ class StatTest:
"""
def readStatVariable(self, filename):
vars = []
nrCol = 0
nrCol = -1
numScalars = 0
hasReadHeader = False
lines = readfile(filename + ".stat")
......@@ -219,7 +219,7 @@ class StatTest:
numScalars -= 1
continue
elif hasReadHeader == True and numScalars == 0:
elif hasReadHeader == True and numScalars == 0 and nrCol > -1:
values = str.split(line, "\t")
vars.append(float(values[nrCol]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment