From 2124e769d1b2600f0437393ab6c86f13d53edead Mon Sep 17 00:00:00 2001 From: apn Date: Thu, 7 May 2015 11:31:24 +0300 Subject: [PATCH] 0026194: Sometimes "testgrid" command runs every test many times Added check for equal test directories in variable CSF_TestScriptsPath. --- src/DrawResources/TestCommands.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DrawResources/TestCommands.tcl b/src/DrawResources/TestCommands.tcl index 81a1bd8722..3d316342f8 100644 --- a/src/DrawResources/TestCommands.tcl +++ b/src/DrawResources/TestCommands.tcl @@ -278,7 +278,7 @@ proc testgrid {args} { set tests_list {} # iterate by all script paths - foreach dir [_split_path $env(CSF_TestScriptsPath)] { + foreach dir [lsort -unique [_split_path $env(CSF_TestScriptsPath)]] { # protection against empty paths set dir [string trim $dir] if { $dir == "" } { continue } -- 2.20.1