autotest: add test for require() after rescheduling

It can end up broken due to incorrect assumptions about the executed
function's upvalues, which might change after rescheduling.
This commit is contained in:
Thomas Watson 2024-07-25 15:25:37 -05:00 committed by Andrew Tridgell
parent da006d427d
commit c797baa37b
1 changed files with 2 additions and 0 deletions

View File

@ -5134,6 +5134,7 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm)
self.install_test_scripts_context([ self.install_test_scripts_context([
"scripting_test.lua", "scripting_test.lua",
"scripting_require_test_2.lua",
"math.lua", "math.lua",
"strings.lua", "strings.lua",
"mavlink_test.lua", "mavlink_test.lua",
@ -5146,6 +5147,7 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm)
for success_text in [ for success_text in [
"Internal tests passed", "Internal tests passed",
"Require test 2 passed",
"Math tests passed", "Math tests passed",
"String tests passed", "String tests passed",
"Received heartbeat from" "Received heartbeat from"