Add a detach command to detach without terminating (#21490)

* Add a detach command to detach without terminating (#21376)

* Add a detach command to detach without terminating

Fixes #21154.

* Bump protocol version for app.detach

* Tweak to detach/quit text

* Change logPrefix to named param

* Fix the text that the devicelab attach test looks for
This commit is contained in:
Danny Tuppeny
2018-09-06 15:26:55 +01:00
committed by GitHub
parent e55b0f5244
commit 7fc9165e4e
6 changed files with 91 additions and 17 deletions

View File

@@ -33,7 +33,7 @@ Future<void> testReload(Process process, { Future<void> Function() onListening }
stdout.add(line);
if (line.contains('Waiting') && onListening != null)
listening.complete(onListening());
if (line.contains('To quit, press "q".'))
if (line.contains('To detach, press "d"; to quit, press "q".'))
ready.complete();
if (line.contains('Reloaded '))
reloaded.complete();