Fix: delete the temporary file 73/20673/1
authorKhouloud Touil <ktouil@baylibre.com>
Wed, 13 Mar 2019 14:28:01 +0000 (15:28 +0100)
committerKhouloud Touil <ktouil@baylibre.com>
Thu, 14 Mar 2019 09:14:10 +0000 (10:14 +0100)
Before breaking the loop, the temporary file should be deleted.

Change-Id: I3d2abb49b78cdf08e77ce4007d24e40dd4a93ea5
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
common/scripts/test_can_bitrate.sh

index 08592fe..305515c 100755 (executable)
@@ -107,6 +107,7 @@ for b in `seq 10790 10800`;do
                lava-test-case Receive_can1 --result pass --measurement $b --units bit/s
         sleep 2
                echo "$b is the first supportable bitrate to provide transmission"
+               rm $file_can
                break
        fi
        ip link set can0 down