@@ -62,23 +62,27 @@ runs:
6262 cd test;
6363 mkdir -p ./project/lib;
6464 cp ../target/debug/libgdnative_test.so ./project/lib/;
65- ${GODOT_BIN} --path ./project/ > >(tee "${{ runner.temp }}/stdout.log");
66- if grep -q "Leaked instance" "${{ runner.temp }}/stdout.log"; then
65+ ${GODOT_BIN} --path ./project/ > >(tee "${{ runner.temp }}/stdout.log") 2> >(tee "${{ runner.temp }}/stderr.log");
66+ bash ../tools/check-test-output.sh "${{ runner.temp }}/stdout.log" "${{ runner.temp }}/stderr.log";
67+ if [[ $? -ne 0 ]]; then
6768 exit 1;
6869 fi;
69- ${GODOT_BIN} -e --path ./project/ --run-editor-tests > >(tee "${{ runner.temp }}/stdout.log");
70- if grep -q "Leaked instance" "${{ runner.temp }}/stdout.log"; then
70+ ${GODOT_BIN} -e --path ./project/ --run-editor-tests > >(tee "${{ runner.temp }}/stdout.log") 2> >(tee "${{ runner.temp }}/stderr.log");
71+ bash ../tools/check-test-output.sh "${{ runner.temp }}/stdout.log" "${{ runner.temp }}/stderr.log";
72+ if [[ $? -ne 0 ]]; then
7173 exit 1;
7274 fi;
7375 cargo build --features type-tag-fallback ${{ inputs.rust_extra_args }}
7476 mkdir -p ./project/lib;
7577 cp ../target/debug/libgdnative_test.so ./project/lib/;
76- ${GODOT_BIN} --path ./project/ > >(tee "${{ runner.temp }}/stdout.log");
77- if grep -q "Leaked instance" "${{ runner.temp }}/stdout.log"; then
78+ ${GODOT_BIN} --path ./project/ > >(tee "${{ runner.temp }}/stdout.log") 2> >(tee "${{ runner.temp }}/stderr.log");
79+ bash ../tools/check-test-output.sh "${{ runner.temp }}/stdout.log" "${{ runner.temp }}/stderr.log";
80+ if [[ $? -ne 0 ]]; then
7881 exit 1;
7982 fi;
80- ${GODOT_BIN} -e --path ./project/ --run-editor-tests > >(tee "${{ runner.temp }}/stdout.log");
81- if grep -q "Leaked instance" "${{ runner.temp }}/stdout.log"; then
83+ ${GODOT_BIN} -e --path ./project/ --run-editor-tests > >(tee "${{ runner.temp }}/stdout.log") 2> >(tee "${{ runner.temp }}/stderr.log");
84+ bash ../tools/check-test-output.sh "${{ runner.temp }}/stdout.log" "${{ runner.temp }}/stderr.log";
85+ if [[ $? -ne 0 ]]; then
8286 exit 1;
8387 fi;
8488 shell : bash
0 commit comments