test: Factor out the cockpit-ws path in check-connection
test: Factor out the cockpit-ws path in check-connection

It's already being used in multiple places, and we'll add more.

garrett/cockpit,cockpit-project/cockpit,cockpituous/cockpit,cockpituous/cockpit,mvollmer/cockpit,martinpitt/cockpit,cockpituous/cockpit,martinpitt/cockpit,mvollmer/cockpit,moraleslazaro/cockpit,garrett/cockpit,deryni/cockpit,garrett/cockpit,cockpit-project/cockpit,martinpitt/cockpit,cockpit-project/cockpit,cockpituous/cockpit,garrett/cockpit,mvollmer/cockpit,deryni/cockpit,cockpituous/cockpit,deryni/cockpit,mvollmer/cockpit,mvollmer/cockpit,deryni/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,deryni/cockpit,martinpitt/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,deryni/cockpit,garrett/cockpit,cockpit-project/cockpit,martinpitt/cockpit,deryni/cockpit,cockpituous/cockpit