| 722 | { |
| 723 | public: |
| 724 | NetworkIsolatorTestFilter() |
| 725 | { |
| 726 | #ifdef ENABLE_PORT_MAPPING_ISOLATOR |
| 727 | Try<Nothing> check = routing::check(); |
| 728 | if (check.isError()) { |
| 729 | std::cerr |
| 730 | << "-------------------------------------------------------------\n" |
| 731 | << "We cannot run any PortMapping tests because:\n" |
| 732 | << check.error() << "\n" |
| 733 | << "-------------------------------------------------------------\n"; |
| 734 | |
| 735 | portMappingError = Error(check.error()); |
| 736 | } |
| 737 | #endif |
| 738 | } |
| 739 | |
| 740 | bool disable(const ::testing::TestInfo* test) const override |
| 741 | { |