From 0501e116c1410ade9a7ed4b14752d66194de99d5 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 3 May 2017 17:20:30 +0300 Subject: Adjust test working directory removal verbosity level (make 2) --- build2/test/script/runner.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build2/test/script/runner.cxx') diff --git a/build2/test/script/runner.cxx b/build2/test/script/runner.cxx index 11873ca..2453672 100644 --- a/build2/test/script/runner.cxx +++ b/build2/test/script/runner.cxx @@ -831,13 +831,17 @@ namespace build2 { dir_path d (path_cast (p)); + // Trace the scope working directory removal with the verbosity + // level 2 (that was used for its creation). For other + // directories use level 3 (as for other cleanups). + // // @@ If 'd' is a file then will fail with a diagnostics having // no location info. Probably need to add an optional location // parameter to rmdir() function. The same problem exists for // a file cleanup when try to rmfile() directory instead of // file. // - rmdir_status r (rmdir (d, 3)); + rmdir_status r (rmdir (d, d == sp.wd_path ? 2 : 3)); if (r == rmdir_status::success || (r == rmdir_status::not_exist && t == cleanup_type::maybe)) -- cgit v1.1