r22579: disable progress printing in the build-farm
[sfrench/samba-autobuild/.git] / source4 / torture / basic / utable.c
index 28122da214e5ad60548c973e13b0ad8fb3470f4e..363288658eee3d611df1b427a8b358e97bdd3183 100644 (file)
@@ -74,7 +74,10 @@ bool torture_utable(struct torture_context *tctx,
                smbcli_unlink(cli->tree, fname);
 
                if (c % 100 == 0) {
-                       torture_comment(tctx, "%d (%d/%d)\r", c, chars_allowed, alt_allowed);
+                       if (torture_setting_bool(tctx, "progress", true)) {
+                               torture_comment(tctx, "%d (%d/%d)\r", c, chars_allowed, alt_allowed);
+                               fflush(stdout);
+                       }
                }
        }
        torture_comment(tctx, "%d (%d/%d)\n", c, chars_allowed, alt_allowed);