File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -467,23 +467,9 @@ jobs:
467467 open(path, 'w').write(src)
468468 print('patched information-schema-builder.php (temporary_table_exists only)')
469469
470- # 3. wp_die polyfill: 21 tests hit an error path in the driver that
471- # calls wp_die(). Real WordPress provides it; the unit-test bootstrap
472- # does not. Add a minimal polyfill.
473- path = 'tests/bootstrap.php'
474- src = open(path).read()
475- marker = "if ( ! function_exists( 'do_action' ) ) {"
476- inject = (
477- "if ( ! function_exists( 'wp_die' ) ) {\n"
478- "\tfunction wp_die( $message = '', $title = '', $args = array() ) {\n"
479- "\t\tthrow new \\RuntimeException( is_string( $message ) ? $message : 'wp_die' );\n"
480- "\t}\n"
481- "}\n\n"
482- )
483- assert marker in src
484- src = src.replace(marker, inject + marker, 1)
485- open(path, 'w').write(src)
486- print('added wp_die polyfill to bootstrap.php')
470+ # (wp_die polyfill disabled while bisecting which patch causes the
471+ # hang at test 504/667. Without any driver patch the suite runs to
472+ # completion; WITH temporary_table_exists + wp_die it hangs.)
487473 PY
488474
489475 - name : Capture failing SQL from the first failing driver test
You can’t perform that action at this time.
0 commit comments