mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-20 15:04:58 +01:00
The checks of en57_2000_automatic_coupler_couples said only that nothing collided nor derailed, so the case passed just as well with the units buffering, bouncing apart or never meeting. The simulator writes nothing to the log when automatic couplers catch, but the black box of the run (physicslog/<scenery>_<date>.blackbox, written along with the physicslogs the runner turns on) gets a coupling record with the two vehicles. run.py reads the vehicle and the coupling records of it and gets a check on them, couples: the two named vehicles couple after the start and are still coupled at the end. It fails when the black box has no coupling of that pair, when they came apart again, when they were coupled from the start, and when the run left no black box. The case names the vehicles that meet: the last car of the standing unit and the first of the rolling one. The black box is moved to out/<case>/ with the other files of the run.
19 lines
798 B
JSON
19 lines
798 B
JSON
{
|
|
"description": "Issue #86, the control case: an EN57-2000 unit without a driver rolls at 4 km/h into a standing one on td.scn. Their automatic couplers catch: the black box of the run has the last car of the standing unit and the first of the rolling one coupled. Nothing collides nor derails; nothing reports a result, so the run ends on the 60 s test timeout.",
|
|
"base_scenery": "td.scn",
|
|
"ini": ["crashdamage yes"],
|
|
"fragment": "td_automatic_coupler_hit.scn",
|
|
"vars": {
|
|
"velocity": "4",
|
|
"offset": "30"
|
|
},
|
|
"expect": "timeout",
|
|
"duration": 60,
|
|
"timeout": 300,
|
|
"checks": [
|
|
{ "type": "couples", "vehicle": "{{vehicle}}_rb", "other": "{{vehicle}}_hit_ra" },
|
|
{ "type": "log_lacks", "pattern": "collided" },
|
|
{ "type": "log_lacks", "pattern": "derailed" }
|
|
]
|
|
}
|