Throw error if user analyzes two of same path (#260, #67)

Signed-off-by: colramos-amd <colramos@amd.com>


[ROCm/rocprofiler-compute commit: fa7c82de75]
This commit is contained in:
colramos-amd
2024-03-12 16:46:36 -05:00
rodzic ff7751724b
commit 1a27707a4d
@@ -186,6 +186,16 @@ class OmniAnalyze_Base:
# validate profiling data
is_workload_empty(dir[0])
# no using same paths
occurances = set()
for dir in self.__args.path:
dir = dir[0]
if dir in occurances:
console_error("You cannot provide the same path twice.")
else:
occurances.add(dir)
# ----------------------------------------------------
# Required methods to be implemented by child classes
# ----------------------------------------------------