diff options
author | Richard Jones <rjones@redhat.com> | 2010-04-30 23:12:34 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-04-30 23:12:34 +0100 |
commit | 097266e01cfa28319834bf750649650f3c22006f (patch) | |
tree | e9edbd80bdccba13f827e95a15d93046106c0128 /src | |
parent | a0a394a4619c5d45932fee3de8d86cabf0ecb2e7 (diff) | |
download | libguestfs-097266e01cfa28319834bf750649650f3c22006f.tar.gz libguestfs-097266e01cfa28319834bf750649650f3c22006f.tar.xz libguestfs-097266e01cfa28319834bf750649650f3c22006f.zip |
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.
Diffstat (limited to 'src')
-rwxr-xr-x | src/generator.ml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/generator.ml b/src/generator.ml index 30d10389..cbed94b7 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; |