aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-12-22 02:04:11 +0700
committerShulhan <ms@kilabit.info>2023-12-22 03:07:52 +0700
commitc0d336ca456093b2b7c0b585dbe08f62cbc8ca83 (patch)
treecb313f0352a91562cc99ad115d62bad1447dc2b9 /testdata
parent66a18a789edaa35dfa4446846eeeffabfee0b269 (diff)
downloadawwan-c0d336ca456093b2b7c0b585dbe08f62cbc8ca83.tar.xz
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.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/local/cancel.aww1
-rw-r--r--testdata/local/cancel_test.data3
2 files changed, 4 insertions, 0 deletions
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