Ardupilot2/Tools
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
..
APM2_2560_bootloader Global: Fix typos 2016-09-17 00:36:36 -03:00
APM_radio_test Tools: fixup line endings 2014-04-15 15:55:15 +09:00
ArduPilotMega_demo Tools: fixup line endings 2014-04-15 15:55:15 +09:00
ArdupilotMegaPlanner Tools: update URLs 2016-03-25 20:47:27 +11:00
ardupilotwaf Tools: link volz library 2017-11-21 14:10:54 +11:00
ArduPPM Tools: Fix typos 2016-05-13 19:20:07 -03:00
autotest Tools: Fix a race condition on the regression tests on Windows 2017-11-22 17:01:05 +09:00
CHDK-Scripts Global: Fix typos 2016-09-17 00:36:36 -03:00
CodeStyle CodeStyle: xmlpretty.py considers nodes with only text children to be one-liners 2016-01-07 17:39:09 +11:00
CPUInfo CPUInfo: example fix travis warning 2017-04-13 19:56:16 +01:00
Failsafe Tools: standardize inclusion of libaries headers 2015-08-11 16:28:41 +10:00
Frame_params Tools: remove default values from eLAB 445 params 2017-11-16 22:48:13 +09:00
GIT_Test Tools; Added name to Git_Success.txt 2017-11-08 14:24:20 +09:00
gittools Tools: gittools: add git-subsystems-split 2015-09-09 10:50:35 +10:00
Hello Hello: example fix travis warning 2017-04-13 19:56:16 +01:00
Linux_HAL_Essentials Tools: update BBBmini Device Tree location 2017-02-03 09:10:36 +11:00
LogAnalyzer Tools: LogAnalyzer: fix string-method-on-int bug for unknown modes 2017-09-30 09:19:17 +10:00
mavproxy_modules Tools: sitl_calibration: add sitl_autonomous_magcal command 2016-10-11 12:58:37 +11:00
Pozyx/IndoorLoiter Pozyx: update uno sketch to work with AP_Beacon 2016-12-01 19:21:38 +09:00
PPM_decoding Tools: fixup line endings 2014-04-15 15:55:15 +09:00
Replay Tools: Replay: fix compiler warning for printf string 2017-10-25 20:27:55 +11:00
scripts Tools: build_binaries.py: handle badly formed config.mk 2017-10-26 17:22:06 +11:00
SerialProxy Tools: Fix typos 2016-05-13 19:20:07 -03:00
vagrant Tools: Vagrant with suppport for ARM hf 2017-09-30 21:03:46 +10:00
Xplane import Tools directory 2011-09-09 11:31:32 +10:00
PrintVersion.py Tools: include Sub in the list of known vehicles for PrintVersion 2017-08-15 11:49:35 +10:00