From: Marius Gavrilescu Date: Fri, 10 Apr 2015 16:28:56 +0000 (+0300) Subject: Default Verifier/Interactive result to 'Ok' X-Git-Tag: 5999.000_005~19 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=34a91d9a841432323980cad110047f18bb7ce7d8;p=gruntmaster-daemon.git Default Verifier/Interactive result to 'Ok' --- 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;