Clean filesystem site-test temp artifacts

This commit is contained in:
udo
2026-07-18 23:22:17 +00:00
parent eb3d2fe9d3
commit fd6d472187
+4 -1
View File
@@ -132,7 +132,10 @@ RENDER(Request& context)
String link_path = "/tmp/uce-site-tests-link";
file_unlink(link_path);
bool symlink_ok = file_symlink(tmp_created, link_path);
check("file_temp() / file_chmod() / file_symlink() / file_fsync()", tmp_created != "" && file_exists(tmp_created) && chmod_ok && fsync_ok && symlink_ok, tmp_created + " -> " + link_path);
bool temp_ready = tmp_created != "" && file_exists(tmp_created) && chmod_ok && fsync_ok && symlink_ok;
file_unlink(link_path);
file_unlink(tmp_created);
check("file_temp() / file_chmod() / file_symlink() / file_fsync()", temp_ready && !file_exists(link_path) && !file_exists(tmp_created), tmp_created + " -> " + link_path);
String start_dir = process_start_directory();
String old_cwd = cwd_get();