ARMmbed / htrun

MOVED: https://github.com/ARMmbed/mbed-os-tools (Flash, reset and run host supervised tests on mbed platforms)
8 stars 37 forks source link

Fix 'mbedhtrun tries to flash non existing file multiple times' #198

Closed alekla01 closed 6 years ago

alekla01 commented 6 years ago

MBEDOSTEST-91

master(fail):

$ mbedhtrun -d /media/alekla01/DAPLINK -p /dev/ttyACM0 -f "test.bin" -C 4 -c shell -m K64F
[1530018523.87][root]Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
[1530018523.89][root]Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
[1530018523.91][HTST][INF] host test executor ver. 1.3.1
[1530018523.91][HTST][INF] copy image onto target...
cp: cannot stat 'test.bin': No such file or directory
[1530018523.92][COPY][ERR] [ret=1] Command: ['cp', 'test.bin', '/media/alekla01/DAPLINK/test.bin']
cp: cannot stat 'test.bin': No such file or directory
[1530018527.93][COPY][ERR] [ret=1] Command: ['cp', 'test.bin', '/media/alekla01/DAPLINK/test.bin']
...

modified(fail):

$ mbedhtrun -d /media/alekla01/DAPLINK -p /dev/ttyACM0 -f "test.bin" -C 4 -c shell -m K64F
[1530018497.71][root]Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
[1530018497.73][root]Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
[1530018497.75][HTST][INF] host test executor ver. 1.3.1
[1530018497.75][HTST][INF] copy image onto target...
[1530018497.75][MBED][ERR] Error: image file (test.bin) not found
$

modified(success):

$ mbedhtrun -d /media/alekla01/DAPLINK -p /dev/ttyACM0 -f "./BUILD/tes/K64F/GCC_ARM/features/frameworks/utest/TESTS/unit_tests/basic_test/basic_test.bin" -C 4 -m K64F
[1530018722.62][root]Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
[1530018722.64][root]Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
[1530018722.66][HTST][INF] host test executor ver. 1.3.1
[1530018722.66][HTST][INF] copy image onto target...
[1530018731.01][MBED][WRN] Target ID not found: Skipping flash check and retry
[1530018731.02][HTST][INF] starting host test process...
coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.06%) to 43.667% when pulling 1e7d22f17cabd02a719237ab851fa672fbe50d3c on alekla01:update_copy into 51edce4f3e3f32b254678f4640c4ec30844c2a7a on ARMmbed:master.