Clean filesystem site-test temp artifacts
This commit is contained in:
+4
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user