vsp-lib: Only remove binaries related to current test
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 26 Jun 2016 12:25:45 +0000 (15:25 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 26 Jun 2016 12:25:45 +0000 (15:25 +0300)
Removing all .bin files when starting a test removes not only the result
of previous runs of the current test as desired, but also the result of
all tests run previously. Fix it by only removing binaries related to
the current test.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
scripts/vsp-lib.sh

index bd3e7ae..40b6144 100755 (executable)
@@ -774,7 +774,7 @@ test_init() {
        local optional_features=$3
 
        rm -f $logfile
        local optional_features=$3
 
        rm -f $logfile
-       rm -f *.bin
+       rm -f ${1/.sh/}*.bin
 
        local best_features_count=0
        local best_mdev=
 
        local best_features_count=0
        local best_mdev=