test: new test, verify task behavior with conditions

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-04-21 20:52:34 +02:00
1 parent 3e4be9a122
commit 05e6b3e752
4 files changed
+90

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
num=$(cat /run/task.state)
if [ -z "$num" ]; then
num=0
fi
num=$((num + 1))
echo $num > /run/task.state