From 097266e01cfa28319834bf750649650f3c22006f Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Fri, 30 Apr 2010 23:12:34 +0100 Subject: [PATCH] tests: In verbose mode, print dashes between each test. Only affects tests when run with LIBGUESTFS_DEBUG=1. Lets you easily see when each test starts and ends. --- src/generator.ml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generator.ml b/src/generator.ml index 30d1038..cbed94b 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -6716,6 +6716,8 @@ int main (int argc, char *argv[]) iteri ( fun i test_name -> pr " test_num++;\n"; + pr " if (guestfs_get_verbose (g))\n"; + pr " printf (\"-------------------------------------------------------------------------------\\n\");\n"; pr " printf (\"%%3d/%%3d %s\\n\", test_num, nr_tests);\n" test_name; pr " if (%s () == -1) {\n" test_name; pr " printf (\"%s FAILED\\n\");\n" test_name; -- 1.8.3.1