From c0d336ca456093b2b7c0b585dbe08f62cbc8ca83 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 22 Dec 2023 02:04:11 +0700 Subject: all: add [context.Context] to Local and Play Passing context allow the command Local or Play to be cancelled when running in asynchronous mode, in this case when awwan run with WUI. --- testdata/local/cancel.aww | 1 + testdata/local/cancel_test.data | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 testdata/local/cancel.aww create mode 100644 testdata/local/cancel_test.data (limited to 'testdata') diff --git a/testdata/local/cancel.aww b/testdata/local/cancel.aww new file mode 100644 index 0000000..46a443f --- /dev/null +++ b/testdata/local/cancel.aww @@ -0,0 +1 @@ +sleep 300 diff --git a/testdata/local/cancel_test.data b/testdata/local/cancel_test.data new file mode 100644 index 0000000..357ec8b --- /dev/null +++ b/testdata/local/cancel_test.data @@ -0,0 +1,3 @@ +<<< cancel +----/--/-- --:--:-- === BEGIN: local testdata/local/cancel.aww 1 +----/--/-- --:--:-- --> 1: sleep 300 -- cgit v1.3