| 695 | } |
| 696 | |
| 697 | bool GDScriptTest::generate_output() { |
| 698 | TestResult result = execute_test_code(true); |
| 699 | if (result.status == GDTEST_LOAD_ERROR) { |
| 700 | return false; |
| 701 | } |
| 702 | |
| 703 | Error err = OK; |
| 704 | Ref<FileAccess> out_file = FileAccess::open(output_file, FileAccess::WRITE, &err); |
| 705 | if (err != OK) { |
| 706 | return false; |
| 707 | } |
| 708 | |
| 709 | String output = result.output.strip_edges(); ///< @todo May be hacky. |
| 710 | output += "\n"; // Make sure to insert newline for CI static checks. |
| 711 | |
| 712 | out_file->store_string(output); |
| 713 | |
| 714 | return true; |
| 715 | } |
| 716 | |
| 717 | } // namespace GDScriptTests |
no test coverage detected