ardupilot/Tools/autotest
Dr.-Ing. Amilcar Do Carmo Lucas 5c07a44a6d Tools: Fix a race condition on the regression tests on Windows
Added \r\n to the expect() string as recomended at:
http://pexpect.readthedocs.io/en/stable/overview.html#find-the-end-of-line-cr-lf-conventions
this should work on both windows and linux systems

pexpect says it will always do a minimal (non greedy) matching and docs explicitly say that a .+ expression will always return only one character. These lines in autotest are looking for \S+, which, believing the documentation, would only return one character of the log file path.
Now we know that's not true, neither for Linux or for Windows (given the logs from @karthikdesai), so I can only assume that it does a greedy match but only for the characters it has received at the time expect is called.
Apparently, in the machines we are using autotest, it isn't a problem since MAVProxy is likely fast to give its output to pexpect before the expect method is called. On @karthikdesai's machine that wasn't happening since his machine was more or less loaded.
Concluding, this looks like a correct fix in the sense that it extends the regex pattern to wait for the end of line (and probably other places could benefit from it too).
2017-11-22 17:01:05 +09:00
..
ArduPlane-Missions autotest: updated OBC2016 mission 2016-07-20 19:44:14 +10:00
XPlane autotest: An X-Plane soaring mission file 2017-04-08 20:01:33 +10:00
aircraft Tools: Fix typos 2016-05-13 19:20:07 -03:00
default_params Tools: enable INS batch logging during Rover autotest 2017-10-27 16:33:45 +11:00
jsb_sim autotest: python3 support 2016-11-09 11:48:22 -03:00
param_metadata Tools: add new no-emit option to param_parse.py so that only validation is done 2017-07-18 14:15:39 +01:00
pysim autotest: default plane simulator to 'plane' 2017-11-06 15:44:26 +11:00
web Update index.html 2016-11-08 12:26:03 +11:00
web-firmware web-firmware: Add Sub link to firmwares page 2017-03-01 14:44:55 +11:00
win_sitl Tools: APM source is not required to be in Cygwin dir 2017-06-14 18:03:25 +01:00
CMAC-circuit.txt autotest: added takeoff to CMAC-circuit.txt 2013-09-16 11:39:11 +10:00
CMAC-grid.txt autotest: a useful CMAC test pattern from Paul 2014-02-15 05:27:51 +11:00
README First version of APM autotest 2011-10-31 13:50:34 +11:00
__init__.py Tools: update python coding style 2016-09-01 13:05:11 +10:00
ap1.txt autotest: tweak plane autotest mission and parameters 2013-05-31 15:31:59 +10:00
apmrover2.py Tools: Fix a race condition on the regression tests on Windows 2017-11-22 17:01:05 +09:00
arducopter.py Tools: Fix a race condition on the regression tests on Windows 2017-11-22 17:01:05 +09:00
arduplane.py Tools: Fix a race condition on the regression tests on Windows 2017-11-22 17:01:05 +09:00
ardusub.py Tools: Fix a race condition on the regression tests on Windows 2017-11-22 17:01:05 +09:00
autotest.py Tools: autotest: copy generate_manifest aside for build_binaries.py 2017-10-26 07:57:48 +11:00
common.py Tools: autotest: add and use progress function 2017-11-14 16:02:05 +11:00
copter_AVC2013_mission.txt AutoTest: rename AVC2013 to copter_AVC2013_mission 2014-04-08 10:57:30 +09:00
copter_glitch_mission.txt AutoTest: fixup line endings 2014-04-15 15:55:45 +09:00
copter_mission.txt autotest: fix copter_mission 2016-05-13 19:06:03 +09:00
copter_spline_mission.txt AutoTest: copter test that zero alt defaults to current alt 2014-11-06 11:53:56 +09:00
copter_terrain_mission.txt SITL: add copter terrain missions 2016-04-30 10:33:01 +09:00
dump_logs.py autotest: python3 support 2016-11-09 11:48:22 -03:00
fakepos.py autotest: python3 support 2016-11-09 11:48:22 -03:00
fg_plane_view.bat autotest: make bat files work with multiple versions of flightgear 2016-07-14 12:50:27 +10:00
fg_plane_view.sh autotest: fixed fg_plane_view.sh 2016-01-04 07:58:54 +11:00
fg_quad_view.bat autotest: make bat files work with multiple versions of flightgear 2016-07-14 12:50:27 +10:00
fg_quad_view.sh autotest: fixed fg_quad_view for new FlightGear versions 2016-01-04 14:31:21 +11:00
junit.xml auto est: modular tests and unit testing with Junit.xml output for jenkins 2012-07-05 23:48:50 -07:00
locations.txt autotest: Add RAT Beach for ArduSub 2017-11-20 17:27:47 +09:00
quadplane.py Tools: autotest: add and use progress function 2017-11-14 16:02:05 +11:00
rover1.txt autotest: tweaks to rover autotest for sparkfun 2013-05-29 11:36:48 +10:00
run_in_terminal_window.sh Tools: autotest: use -z in place of -v for checking variable settedness 2017-09-18 08:26:22 +10:00
sim_vehicle.py fix wait_unlimited with an infinite sleep loop 2017-11-06 13:39:59 +11:00
sub_mission.txt autotest: (Sub) only execute one circle instead of four 2017-04-07 14:47:48 -04:00

README

This is an automated test suite for APM