It may appear to be useful to track the sporadic test failures
observed on jenkins, not reproducible locally.
Previously it was disabled because the output could be too
large. But after the hexdump was improved to skip repeating bytes
the output will hopefully be much smaller.
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit
bb77f740df749de1bba0e91b03c4eb23d5586e43)
std::cout << "snap: " << (src_snap_name ? src_snap_name : "null")
<< ", block " << offset << "~" << read_size << " differs"
<< std::endl;
- // std::cout << "src block: " << std::endl; src_bl.hexdump(std::cout);
- // std::cout << "dst block: " << std::endl; dst_bl.hexdump(std::cout);
+ std::cout << "src block: " << std::endl; src_bl.hexdump(std::cout);
+ std::cout << "dst block: " << std::endl; dst_bl.hexdump(std::cout);
}
EXPECT_TRUE(src_bl.contents_equal(dst_bl));
offset += read_size;
std::cout << description
<< ", block " << offset << "~" << read_size << " differs"
<< std::endl;
- char *c = getenv("TEST_RBD_MIGRATION_VERBOSE");
- if (c != NULL && *c != '\0') {
- std::cout << "src block: " << src_ictx->id << ": " << std::endl; src_bl.hexdump(std::cout);
- std::cout << "dst block: " << dst_ictx->id << ": " << std::endl; dst_bl.hexdump(std::cout);
- }
+ std::cout << "src block: " << src_ictx->id << ": " << std::endl; src_bl.hexdump(std::cout);
+ std::cout << "dst block: " << dst_ictx->id << ": " << std::endl; dst_bl.hexdump(std::cout);
}
EXPECT_TRUE(src_bl.contents_equal(dst_bl));
offset += read_size;