Mercurial > lbo > hg > localmr
changeset 40:1b71d1dcad70
Remove map test output files
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Mon, 01 Feb 2016 20:41:25 +0000 |
parents | 6f83c2cceeb3 |
children | 2ec1d193c8f0 |
files | src/map.rs |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/map.rs Mon Feb 01 20:41:09 2016 +0000 +++ b/src/map.rs Mon Feb 01 20:41:25 2016 +0000 @@ -189,10 +189,19 @@ #[test] fn test_map_partition() { - let mp = MapPartition::_new(MRParameters::new().set_concurrency(4, 3), + use std::fmt::format; + use std::fs; + + let reducers = 3; + let mp = MapPartition::_new(MRParameters::new().set_concurrency(4, reducers), get_input(), get_mr(), get_output()); mp._run(); + + for i in 0..reducers { + let filename = format(format_args!("test_map_mapout_0.{}", i)); + let _ = fs::remove_file(filename); + } } }