aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2016-01-27 18:14:59 +0000
committerJavi Merino <javi.merino@arm.com>2016-01-27 18:14:59 +0000
commit4bb9e40eead9eeedaf0202e1d6739854c7010396 (patch)
tree1285e5c5ae00ccf8e6c603f05ddeefe6f2ecd279
parent7881a53f3898b121e04de245a80f24976ae198b6 (diff)
downloadbart-4bb9e40eead9eeedaf0202e1d6739854c7010396.tar.gz
common: make sure that the trace inherits from BareTrace, not FTrace
trappy now has a BareTrace class of which FTrace is one instance of. As all that bart needs is the interface that BareTrace provides, let bart check that the provided trace is an instance of it.
-rw-r--r--bart/common/Utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bart/common/Utils.py b/bart/common/Utils.py
index fdfd1e0..0240c23 100644
--- a/bart/common/Utils.py
+++ b/bart/common/Utils.py
@@ -42,7 +42,7 @@ def init_ftrace(trace):
if isinstance(trace, basestring):
return trappy.FTrace(trace)
- elif isinstance(trace, trappy.FTrace):
+ elif isinstance(trace, trappy.BareTrace):
return trace
raise ValueError("Invalid trace Object")