fix(kobling): stoppedAway logger afstanden til markøren; flow prøver én gang mere at hente vognen efter stoppedAway; puljens skyld-regel matcher årsagen med afstand (v1.56.1.0)
This commit is contained in:
@@ -59,7 +59,7 @@ check("job: AD ikke startet endnu (opstart-frist)", lostJob.state, "driving")
|
||||
H.step(lostJob, {adActive = true, distance = 40, speed = 5}, 500, false)
|
||||
H.step(lostJob, {adActive = false, distance = 40, speed = 0}, 500, false)
|
||||
check("job: AD stoppede langt fra markøren", lostJob.state, "failed")
|
||||
check("job: årsag stoppet undervejs", lostJob.reason, "stoppedAway")
|
||||
check("job: årsag stoppet undervejs", tostring(lostJob.reason):find("^stoppedAway") ~= nil, true)
|
||||
-- tur: "Connect Bredal > Start" -> to markørnavne
|
||||
local route = H.parseTrip("Connect", "Bredal", ">", "Start", ">", "Afkobl", "Bredal", ">", "Start")
|
||||
check("tur: antal trin", #route, 4)
|
||||
@@ -120,5 +120,6 @@ check("transport: tændt+sænket+udfoldet", table.concat(H.stowActions({turnedOn
|
||||
check("transport: allerede klar", #H.stowActions({}), 0)
|
||||
check("transport: kan ikke foldes -> kun sluk/løft", table.concat(H.stowActions({turnedOn = true, lowered = true, unfolded = true, canFold = false}), ","), "turnOff,raise")
|
||||
check("transport: kun udfoldet", table.concat(H.stowActions({unfolded = true, canFold = true}), ","), "fold")
|
||||
check("vagt: stoppedAway med afstand", H.step(H.newJob(1, "Connect x", "attach"), {adActive = false, distance = 37.4, speed = 0}, 4000, false).reason, "stoppedAway (37 m fra markøren)")
|
||||
print(failures == 0 and "\nALLE TESTS OK" or ("\n" .. failures .. " FEJL"))
|
||||
os.exit(failures == 0 and 0 or 1)
|
||||
|
||||
Reference in New Issue
Block a user