From 2bfb93573b78db4d7f69d47e3fc67a1682e4f876 Mon Sep 17 00:00:00 2001 From: Michael Aquilina Date: Mon, 15 Jul 2019 10:43:51 +0100 Subject: [PATCH] Fix uname during tests --- tests/test_auto_notify.zunit | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_auto_notify.zunit b/tests/test_auto_notify.zunit index 798a4f5..cd82c4e 100644 --- a/tests/test_auto_notify.zunit +++ b/tests/test_auto_notify.zunit @@ -7,6 +7,10 @@ echo "Notification: $@" } + function uname { + echo "Linux" + } + # Mock date function to return a frozen timestamp function date { if [[ "$1" == +"%s" ]]; then @@ -58,7 +62,7 @@ done } -@test 'auto-notify-send sends notification' { +@test 'auto-notify-send sends notification on Linux' { AUTO_COMMAND="f bar -r" AUTO_COMMAND_FULL="foo bar -r" AUTO_COMMAND_START=11080