r22579: disable progress printing in the build-farm
[sfrench/samba-autobuild/.git] / source4 / torture / basic / mangle_test.c
index 68ee0b63f550ca4145b33122d068469de78b7af5..98a0d07efb166ec40dd1a89b3f1b7537ac53011e 100644 (file)
@@ -184,8 +184,10 @@ BOOL torture_mangle(struct torture_context *torture,
                        break;
                }
                if (total && total % 100 == 0) {
-                       printf("collisions %u/%u  - %.2f%%   (%u failures)\r",
-                              collisions, total, (100.0*collisions) / total, failures);
+                       if (torture_setting_bool(torture, "progress", true)) {
+                               printf("collisions %u/%u  - %.2f%%   (%u failures)\r",
+                                      collisions, total, (100.0*collisions) / total, failures);
+                       }
                }
        }