don't print color output from tests (to make it work with some of the regression testing tools)
This commit is contained in:
@@ -118,18 +118,7 @@ void test_pex()
|
||||
st2 = tor2.status();
|
||||
st3 = tor3.status();
|
||||
|
||||
std::cerr
|
||||
<< "\033[33m" << int(st1.upload_payload_rate / 1000.f) << "kB/s "
|
||||
<< st1.num_peers << ": "
|
||||
<< "\033[32m" << int(st2.download_payload_rate / 1000.f) << "kB/s "
|
||||
<< "\033[31m" << int(st2.upload_payload_rate / 1000.f) << "kB/s "
|
||||
<< "\033[0m" << int(st2.progress * 100) << "% "
|
||||
<< st2.num_peers << " - "
|
||||
<< "\033[32m" << int(st3.download_payload_rate / 1000.f) << "kB/s "
|
||||
<< "\033[31m" << int(st3.upload_payload_rate / 1000.f) << "kB/s "
|
||||
<< "\033[0m" << int(st3.progress * 100) << "% "
|
||||
<< st3.num_peers
|
||||
<< std::endl;
|
||||
print_ses_rate(&st1, &st2, &st3);
|
||||
|
||||
// this is the success condition
|
||||
if (st1.num_peers == 2 && st2.num_peers == 2 && st3.num_peers == 2)
|
||||
|
Reference in New Issue
Block a user