diff options
author | Daniil Riazanovskiy <riazanovskiy@google.com> | 2020-10-05 15:07:15 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2020-10-12 08:23:13 +0000 |
commit | bfe8fc80767511676eae739e0924377dfc6c6089 (patch) | |
tree | 266db200bfb812ebe6b5ed9ab3ab9accb67081fe /tools/checker/file_format/c1visualizer/struct.py | |
parent | 7e9fc9d6d1622192f118bab771784eedfb66c60e (diff) |
Restore cfg file printing in Checker as an option
Test: run checker with test that is expected to fail
Change-Id: I14ca5e6bed38e2677cdf4b2eb4b79a6594af6f13
Diffstat (limited to 'tools/checker/file_format/c1visualizer/struct.py')
-rw-r--r-- | tools/checker/file_format/c1visualizer/struct.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/checker/file_format/c1visualizer/struct.py b/tools/checker/file_format/c1visualizer/struct.py index 21036da213..5925da96c5 100644 --- a/tools/checker/file_format/c1visualizer/struct.py +++ b/tools/checker/file_format/c1visualizer/struct.py @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +import os + from common.immutables import ImmutableDict from common.logger import Logger from common.mixins import PrintableMixin @@ -19,7 +21,8 @@ from common.mixins import PrintableMixin class C1visualizerFile(PrintableMixin): def __init__(self, fileName): - self.fileName = fileName + self.baseFileName = os.path.basename(fileName) + self.fullFileName = fileName self.passes = [] self.instructionSetFeatures = ImmutableDict() @@ -58,7 +61,7 @@ class C1visualizerPass(PrintableMixin): @property def fileName(self): - return self.parent.fileName + return self.parent.baseFileName def __eq__(self, other): return isinstance(other, self.__class__) \ |