News:

Simutrans Forum Archive
A complete record of the old Simutrans Forum.

[r10618] Automated tests fail

Started by ceeac, May 03, 2022, 06:43:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ceeac

On GitHub Actions:
00:01:18 Script: Print:    [21/133] test_depot_convoy_add_normal
00:01:19 Script: Error:    <error>
00:01:19 Script: Error:    <st>Error: [Assertion failed, 0 != 1]</st>
00:01:19 Script: Error:    CALLSTACK
00:01:19 Script: Error:    <em>* FUNCTION [ASSERT_EQUAL()] <br>* /home/runner/work/simutrans/simutrans/simutrans/pak/scenario/automated-tests//test_helpers.nut
00:01:19 Script: Error:    * line [17]
00:01:19 Script: Error:    </em>
00:01:19 Script: Error:    - - LOCALS
00:01:19 Script: Error:    - - - [err] INSTANCE
00:01:19 Script: Error:    - - - [exp] 1
00:01:19 Script: Error:    - - - [act] 0
00:01:19 Script: Error:    - - - [this] TABLE (320 entries)
00:01:19 Script: Error:    <em>* FUNCTION [test_depot_convoy_add_normal()] <br>* /home/runner/work/simutrans/simutrans/simutrans/pak/scenario/automated-tests//tests/test_depot.nut
00:01:19 Script: Error:    * line [530]
00:01:19 Script: Error:    </em>
00:01:19 Script: Error:    - - LOCALS
00:01:19 Script: Error:    - - - [vehicle_desc] INSTANCE
00:01:19 Script: Error:    - - - [the_depot] INSTANCE
00:01:19 Script: Error:    - - - [way_desc] INSTANCE
00:01:19 Script: Error:    - - - [public_pl] INSTANCE
00:01:19 Script: Error:    - - - [pl] INSTANCE
00:01:19 Script: Error:    - - - [this] TABLE (320 entries)
00:01:19 Script: Error:    <em>* FUNCTION [run_all_tests()] <br>* /home/runner/work/simutrans/simutrans/simutrans/pak/scenario/automated-tests/scenario.nut
00:01:19 Script: Error:    * line [43]
00:01:19 Script: Error:    </em>
00:01:19 Script: Error:    - - LOCALS
00:01:19 Script: Error:    - - - [num_tests_done] 20
00:01:19 Script: Error:    - - - [error_msg] NULL
00:01:19 Script: Error:    - - - [num_tests] 133
00:01:19 Script: Error:    - - - [func_name] "test_depot_convoy_add_normal"
00:01:19 Script: Error:    - - - [test_func] CLOSURE
00:01:19 Script: Error:    - - - [i] 20
00:01:19 Script: Error:    - - - [this] TABLE (320 entries)
00:01:19 Script: Error:    <em>* FUNCTION [start()] <br>* /home/runner/work/simutrans/simutrans/simutrans/pak/scenario/automated-tests/scenario.nut
00:01:19 Script: Error:    * line [95]
00:01:19 Script: Error:    </em>
00:01:19 Script: Error:    - - LOCALS
00:01:19 Script: Error:    - - - [this] TABLE (320 entries)
00:01:19 Script: Error:    </error>

prissi

I think I fixed this in r10620. Howver, I noticed tools could locally execute not network safe init tools. I added suspendsion to these, but I am not sure whether this is correct or not.