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 2017/08/18 18:20:28 UTC
[whimsy] branch master updated: use local work directory for travis
tests
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 27697a7 use local work directory for travis tests
27697a7 is described below
commit 27697a7495d92209a198c89c7735f832bf04daab
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Aug 18 14:20:14 2017 -0400
use local work directory for travis tests
---
www/board/agenda/daemon/session.rb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/www/board/agenda/daemon/session.rb b/www/board/agenda/daemon/session.rb
index 842ac39..d26f294 100644
--- a/www/board/agenda/daemon/session.rb
+++ b/www/board/agenda/daemon/session.rb
@@ -20,7 +20,12 @@ require 'whimsy/asf/config'
#
class Session
- AGENDA_WORK = ASF::Config.get(:agenda_work).untaint || '/srv/agenda'
+ if ENV['RACK_ENV'] == 'test'
+ AGENDA_WORK = File.expand_path('test/work/data').untaint
+ else
+ AGENDA_WORK = ASF::Config.get(:agenda_work).untaint || '/srv/agenda'
+ end
+
WORKDIR = File.expand_path('sessions', AGENDA_WORK)
DAY = 24*60*60 # seconds
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].