szip: cleanup after tests
parent
dc610a9a80
commit
969e0dce20
|
@ -10,9 +10,21 @@ const (
|
||||||
fpath2 = os.join_path(test_path, fname2)
|
fpath2 = os.join_path(test_path, fname2)
|
||||||
)
|
)
|
||||||
|
|
||||||
fn test_szip_create_temp_files() ? {
|
fn cleanup() {
|
||||||
os.chdir(os.temp_dir()) or {}
|
os.chdir(os.temp_dir()) or {}
|
||||||
os.rmdir_all(test_path) or {}
|
os.rmdir_all(test_path) or {}
|
||||||
|
os.rm(test_out_zip) or {}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn testsuite_begin() ? {
|
||||||
|
cleanup()
|
||||||
|
}
|
||||||
|
|
||||||
|
fn testsuite_end() ? {
|
||||||
|
cleanup()
|
||||||
|
}
|
||||||
|
|
||||||
|
fn test_szip_create_temp_files() ? {
|
||||||
os.mkdir(test_path) ?
|
os.mkdir(test_path) ?
|
||||||
os.write_file(fpath1, 'file one') ?
|
os.write_file(fpath1, 'file one') ?
|
||||||
os.write_file(fpath2, 'file two') ?
|
os.write_file(fpath2, 'file two') ?
|
||||||
|
|
Loading…
Reference in New Issue