Skip to content
Snippets Groups Projects
Commit 8ad5eb29 authored by Adam Welc's avatar Adam Welc
Browse files

Merged.

parents b58a0991 a7351b29
Branches
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ import com.oracle.truffle.api.*; ...@@ -20,6 +20,7 @@ import com.oracle.truffle.api.*;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary; import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.dsl.*; import com.oracle.truffle.api.dsl.*;
import com.oracle.truffle.api.frame.*; import com.oracle.truffle.api.frame.*;
import com.oracle.truffle.api.nodes.RootNode;
import com.oracle.truffle.r.nodes.*; import com.oracle.truffle.r.nodes.*;
import com.oracle.truffle.r.nodes.access.*; import com.oracle.truffle.r.nodes.access.*;
import com.oracle.truffle.r.nodes.access.variables.ReadVariableNode; import com.oracle.truffle.r.nodes.access.variables.ReadVariableNode;
...@@ -183,7 +184,11 @@ public class HiddenInternalFunctions { ...@@ -183,7 +184,11 @@ public class HiddenInternalFunctions {
@TruffleBoundary @TruffleBoundary
public Object lazyLoadDBFetchInternal(MaterializedFrame frame, RIntVector key, RStringVector datafile, int compression, RFunction envhook) { public Object lazyLoadDBFetchInternal(MaterializedFrame frame, RIntVector key, RStringVector datafile, int compression, RFunction envhook) {
if (CompilerDirectives.inInterpreter()) { if (CompilerDirectives.inInterpreter()) {
getRootNode().reportLoopCount(-5); // TODO why is rootNode sometimes null
RootNode rootNode = getRootNode();
if (rootNode != null) {
rootNode.reportLoopCount(-5);
}
} }
String dbPath = datafile.getDataAt(0); String dbPath = datafile.getDataAt(0);
String packageName = new File(dbPath).getName(); String packageName = new File(dbPath).getName();
......
...@@ -103,7 +103,7 @@ def rpt_list_testdates(args): ...@@ -103,7 +103,7 @@ def rpt_list_testdates(args):
parser = ArgumentParser(prog='mx rpt-list-testdates') parser = ArgumentParser(prog='mx rpt-list-testdates')
_add_common_args(parser) _add_common_args(parser)
parser.add_argument('--pattern', action='store', help='regexp pattern for pkg match', default='.*') parser.add_argument('--pattern', action='store', help='regexp pattern for pkg match', default='.*')
parser.add_argument('--printfile', action='store_true', help='print filename containing tests') parser.add_argument('--printdir', action='store_true', help='print directory containing tests')
args = parser.parse_args(args) args = parser.parse_args(args)
fastr = dict() fastr = dict()
dirlist = get_local_dirs(args.logdir) dirlist = get_local_dirs(args.logdir)
...@@ -124,7 +124,7 @@ def rpt_list_testdates(args): ...@@ -124,7 +124,7 @@ def rpt_list_testdates(args):
sortedList = sorted(testdates) sortedList = sorted(testdates)
print pkg print pkg
for resultInfo in sortedList: for resultInfo in sortedList:
if args.printfile: if args.printdir:
print ' ' + resultInfo.localdir print ' ' + resultInfo.localdir
else: else:
print ' ' + str(resultInfo.date) print ' ' + str(resultInfo.date)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment