You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2020/06/10 01:16:48 UTC

[whimsy] branch master updated: attempt to fix travis failure -- skip over --non-interactive argument

This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 8365313  attempt to fix travis failure -- skip over --non-interactive argument
8365313 is described below

commit 8365313201a65b97f75d271b4203b2f98b63bb43
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Tue Jun 9 21:16:09 2020 -0400

    attempt to fix travis failure -- skip over --non-interactive argument
---
 www/board/agenda/spec/spec_helper.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/www/board/agenda/spec/spec_helper.rb b/www/board/agenda/spec/spec_helper.rb
index 31ba37a..6f90ad9 100644
--- a/www/board/agenda/spec/spec_helper.rb
+++ b/www/board/agenda/spec/spec_helper.rb
@@ -42,8 +42,9 @@ module MockServer
     args.flatten!
     if args[1] == 'commit'
       @commits ||= {}
-      @commits[File.basename args[2]] = File.read(args[2])
-      `svn revert #{args[2]}`
+      target = args[2..-1].find {|arg| not arg.start_with? '-'}
+      @commits[File.basename target] = File.read(target)
+      `svn revert #{target}`
       0
     else
       args.reject! {|arg| Array === arg}