From 34a91d9a841432323980cad110047f18bb7ce7d8 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 10 Apr 2015 19:28:56 +0300 Subject: [PATCH] Default Verifier/Interactive result to 'Ok' --- lib/Gruntmaster/Daemon/Runner/Interactive.pm | 2 +- lib/Gruntmaster/Daemon/Runner/Verifier.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Gruntmaster/Daemon/Runner/Interactive.pm b/lib/Gruntmaster/Daemon/Runner/Interactive.pm index f87e88c..af1581e 100644 --- a/lib/Gruntmaster/Daemon/Runner/Interactive.pm +++ b/lib/Gruntmaster/Daemon/Runner/Interactive.pm @@ -50,7 +50,7 @@ sub run{ unlink 'fifo1'; unlink 'fifo2'; - scalar slurp 'result' + scalar slurp 'result' or 'Ok' } 1; diff --git a/lib/Gruntmaster/Daemon/Runner/Verifier.pm b/lib/Gruntmaster/Daemon/Runner/Verifier.pm index 463fd71..55c2730 100644 --- a/lib/Gruntmaster/Daemon/Runner/Verifier.pm +++ b/lib/Gruntmaster/Daemon/Runner/Verifier.pm @@ -23,7 +23,7 @@ sub run{ } catch { die [WA, 'Wrong answer'] ## no critic (RequireCarping) }; - scalar slurp 'result'; + scalar slurp 'result' or 'Ok'; } 1; -- 2.39.2