Answer the question
In order to leave comments, you need to log in
How not to display unnecessary information in the terminal during ptest?
Good afternoon.
When running tests with the rake ptest command, it prints a lot of unnecessary information about the progress of the work to the terminal.
For example:
40/1171: 40/1.1k, 3%, 0.9/s, elapsed: 00:00:31, ETA: 00:19:58
41/1171: 41/1.1k, 3%, 0.9/s, elapsed: 00:00:32, ETA: 00:19:57
42/1171: 42/1.1k, 3%, 0.9/s, elapsed: 00:00:32, ETA: 00:19:56
43/1171: 43/1.1k, 3%, 0.9/s, elapsed: 00:00:32, ETA: 00:19:55
44/1171: 44/1.1k, 3%, 0.9/s, elapsed: 00:00:32, ETA: 00:19:54
45/1171: 45/1.1k, 3%, 0.9/s, elapsed: 00:00:32, ETA: 00:19:53
46/1171: 46/1.1k, 3%, 0.9/s, elapsed: 00:00:32, ETA: 00:19:52
Answer the question
In order to leave comments, you need to log in
command 1>/dev/null
1st stream is STDOUT
2nd (which will remain) - STDERR
If the application is written correctly, then by hiding the 1st stream in the above way, you will get rid of all messages that are not errors.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question