
The code under test shouldn't execute local commands for multiple reasons (eg the command doesn't exist on the test system), so mock out the execution of sysctl in test_get_free_namespace_port (copying the code from test_get_unused_port). Change-Id: I58aa578274310ae2ca015069f99edb84716fb0b5 Closes-bug: #1619028