I'm at eod and not getting anywhere. I did reproduce this on hyperv and found that the run listener seems to be restarting rather than executing the command:
---------------------------------------------------------------------- FAIL: util_windows_test.go:92: UniterSuite.TestRunCommand
...
test 4: run commands: async using rpc client
step 0:
uniter_test.waitHooks{"install", "leader-elected", "config-changed", "start"} waiting for hooks: []string{"install", "leader-elected", "config-changed", "start"} ctx.hooksCompleted: []string{"install", "leader-elected", "config-changed", "start"} ctx.hooks: []string{"install", "leader-elected", "config-changed", "start"} uniter_test.verifyCharm{revision:0, attemptedRevision:0, checkFiles:filetesting.Entries(nil)} step 1:
uniter_test.asyncRunCommands{"Set-Content C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2\\check-5577006791947779410\\8\\run.output \"juju run $env:JUJU_U NIT_NAME\""} step 2:
uniter_test.verifyFile{filename:"C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2\\check-5577006791947779410\\8\\run.output", content:"juju run u/0\r\n"} [LOG] 0:09.432 INFO juju.worker.uniter unit "u/0" shutting down: tomb: dying [LOG] 0:09.432 ERROR juju.worker.uniter juju-run listener got: [{invalid argument}] [LOG] 0:09.432 DEBUG juju.worker.uniter juju-run listener stopping
I'm at eod and not getting anywhere. I did reproduce this on hyperv and found that the run listener seems to be restarting rather than executing the command:
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- test.go: 92: UniterSuite. TestRunCommand
FAIL: util_windows_
...
test 4: run commands: async using rpc client
step 0:
...
uniter_ test.waitHooks{ "install" , "leader-elected", "config-changed", "start"} test.verifyChar m{revision: 0, attemptedRevisi on:0, checkFiles: filetesting. Entries( nil)}
waiting for hooks: []string{"install", "leader-elected", "config-changed", "start"}
ctx.hooksCompleted: []string{"install", "leader-elected", "config-changed", "start"}
ctx.hooks: []string{"install", "leader-elected", "config-changed", "start"}
uniter_
step 1:
uniter_ test.asyncRunCo mmands{ "Set-Content C:\\Users\ \ADMINI~ 1\\AppData\ \Local\ \Temp\\ 2\\check- 557700679194777 9410\\8\ \run.output \"juju run $env:JUJU_U
NIT_NAME\""}
step 2:
uniter_ test.verifyFile {filename: "C:\\Users\ \ADMINI~ 1\\AppData\ \Local\ \Temp\\ 2\\check- 557700679194777 9410\\8\ \run.output" , content:"juju run u/0\r\n"}
[LOG] 0:09.432 INFO juju.worker.uniter unit "u/0" shutting down: tomb: dying
[LOG] 0:09.432 ERROR juju.worker.uniter juju-run listener got: [{invalid argument}]
[LOG] 0:09.432 DEBUG juju.worker.uniter juju-run listener stopping