@@ -62,23 +62,27 @@ runs:
62
62
cd test;
63
63
mkdir -p ./project/lib;
64
64
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
67
68
exit 1;
68
69
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
71
73
exit 1;
72
74
fi;
73
75
cargo build --features type-tag-fallback ${{ inputs.rust_extra_args }}
74
76
mkdir -p ./project/lib;
75
77
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
78
81
exit 1;
79
82
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
82
86
exit 1;
83
87
fi;
84
88
shell : bash
0 commit comments