(whimsy) branch master updated: Another test

2024-02-25 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb 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 2fb1484b Another test
2fb1484b is described below

commit 2fb1484bf61ac638eafdb883aa84a8d35ec124c6
Author: Sebb 
AuthorDate: Sun Feb 25 15:40:39 2024 +

Another test
---
 lib/whimsy/asf/json-utils.rb | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/json-utils.rb b/lib/whimsy/asf/json-utils.rb
index f07a730e..1725d568 100644
--- a/lib/whimsy/asf/json-utils.rb
+++ b/lib/whimsy/asf/json-utils.rb
@@ -61,9 +61,12 @@ module ASFJSON
 end
 
 if __FILE__ == $0
+  require 'stringio'
   old_file = ARGV.shift or raise ArgumentError.new "Old file!"
   new_file = ARGV.shift or raise ArgumentError.new "New file!"
   old_json = JSON.parse(File.read(old_file))
   new_json = JSON.parse(File.read(new_file))
-  ASFJSON.compare_json(old_json, new_json)
+  out = StringIO.new
+  ASFJSON.compare_json(old_json, new_json, out=out)
+  puts out.string
 end



[whimsy] branch master updated: Another test failure

2019-05-27 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb 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 9fe1146  Another test failure
9fe1146 is described below

commit 9fe11462085492069a4a99bcd47c9c754200d42d
Author: Sebb 
AuthorDate: Tue May 28 00:34:36 2019 +0100

Another test failure
---
 .travis.yml | 1 +
 lib/spec/lib/mail/mlist_spec.rb | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 4226d83..18b8c6e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -44,4 +44,5 @@ notifications:
   # https://issues.apache.org/jira/browse/INFRA-11080
   # https://github.com/apache/infrastructure-puppet/pull/319
   email:
+  # Must use specific host name (whimsy-vmn.apache.org)
   - tra...@whimsy-vm4.apache.org
diff --git a/lib/spec/lib/mail/mlist_spec.rb b/lib/spec/lib/mail/mlist_spec.rb
index 1aced47..b7fe780 100644
--- a/lib/spec/lib/mail/mlist_spec.rb
+++ b/lib/spec/lib/mail/mlist_spec.rb
@@ -8,8 +8,7 @@ describe ASF::MLIST do
 
   describe "Dummy test to trigger Travis error" do
 it "Should fail" do
-  expect(%x(touch /srv/test.tmp)).to eq('')  
-  expect(%x(ls -l /srv/test.tmp)).to eq('x')  
+  expect(%x(ls -ld /srv)).to eq('x')  
 end
   end