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

Signed-off-by: colramos-amd <colramos@amd.com>
Этот коммит содержится в:
colramos-amd
2024-03-12 16:46:36 -05:00
родитель e7cc326d5a
Коммит fa7c82de75
+10
Просмотреть файл
@@ -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
# ----------------------------------------------------