Max, I don't know if this is what you're looking for, but there is a helper used in the sanity wizard test to remove existing wi-fi connections before the test and restore them after:
It sounds like the implementation would need to be split between the test which removes the connection and prepare-device script which restores it. Could be of use though.
Max, I don't know if this is what you're looking for, but there is a helper used in the sanity wizard test to remove existing wi-fi connections before the test and restore them after:
http:// bazaar. launchpad. net/~canonical- platform- qa/ubuntu- sanity- tests/trunk/ view/head: /ubuntu_ sanity_ tests/helpers/ testbed. py#L53
It sounds like the implementation would need to be split between the test which removes the connection and prepare-device script which restores it. Could be of use though.