File: 0006-relocate-log-specs.patch

package info (click to toggle)
ruby-celluloid 0.16.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 776 kB
  • sloc: ruby: 5,308; makefile: 10
file content (18 lines) | stat: -rw-r--r-- 506 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: open celluloid log file in a tmp directory
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2018-03-23
Forwarded: no

--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -5,8 +5,9 @@
 #require 'bundler/setup'
 require 'celluloid/rspec'
 require 'celluloid/probe'
+require 'tmpdir'
 
-logfile = File.open(File.expand_path("../../log/test.log", __FILE__), 'a')
+logfile = File.open(Dir.mktmpdir+"/celluloid.log", 'a')
 logfile.sync = true
 
 Celluloid.logger = Logger.new(logfile)