As seen in
http://reports.vapour.ws/releases/issue/566f31a4749a567a419881ff
NoContextWithLock fails on windows because of of contention between 2 or more processes
run_test.go:158:
c.Assert(err, jc.Satisfies, cmd.IsRcPassthroughError)
... obtained *errors.Err = &errors.Err{message:"", cause:(*os.PathError)(0xc0825caf30), previous:(*errors.Err)(0xc0821200f0), file:"github.com/juju/juju/cmd/jujud/run.go", line:108} ("remove c:\\users\\admini~1\\appdata\\local\\temp\\tmpgyyfp2\\gogo\\tmp-juju-test9oigfy\\check-4812758913080376832\\12\\locks/uniter-hook-execution/alive.4680: The process cannot access the file because it is being used by another process.")
... func(T) bool func(error) bool = (func(error) bool)(0x5b37d0)
run_test.go:193:
c.Assert(err, jc.ErrorIsNil)
... value *errors.errorString = &errors.errorString{s:"timeout"} ("timeout")
Note that this issue is preceded by a warning
2016-05-11 11:05:01 WARNING utils.featureflag flags_windows.go:43 Failed to read juju registry value JUJU_DEV_FEATURE_FLAGS; feature flags not enabled
This retest of master tip after a reboot is playing at this moment. It also shows this error.