From 709cd60771f1d9f3cdc08118911866fe2f2b3a8d Mon Sep 17 00:00:00 2001 From: Philipp Wullstein-Kammler <111539239+phiwuu@users.noreply.github.com> Date: Wed, 6 Dec 2023 10:17:39 +0100 Subject: [PATCH] add file path to tag of json-tests (#19) - Include file path in tag of json-tests in lobster-json. Test names are only unique within one json file, but this does not hold globally across all input files. Hence the test tag is modified to contain the file path, where `/` is replaced by `.`. This replacement of characters serves to improve the readability of the tags in the lobster report. - Fix typo in readme file. Co-authored-by: Philipp Wullstein-Kammler --- README.md | 2 +- lobster/tools/json/json.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e573141..bb39cad 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This repository contains the prototype for LOBSTER, which is a key ingredient to make TRCL more useful. It has tools to extract tracing tags from a variety of sources combine -them and produce a tracing report. The [the TRLC tracing +them and produce a tracing report. The [TRLC tracing report](https://bmw-software-engineering.github.io/trlc/tracing.html) from the [TRLC Project](https://github.com/bmw-software-engineering/trlc/) is a diff --git a/lobster/tools/json/json.py b/lobster/tools/json/json.py index 27fe011..e83730a 100755 --- a/lobster/tools/json/json.py +++ b/lobster/tools/json/json.py @@ -175,7 +175,7 @@ def process(cls, options, file_name): l_item = Activity( tag = Tracing_Tag(namespace = "json", - tag = item_name), + tag = "%s.%s" % (file_name.replace("/", "."), item_name)), location = File_Reference(file_name), framework = "JSON", kind = "Test Vector")