test-loop 7.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/test-loop +4 -3
- metadata +2 -2
data/bin/test-loop
CHANGED
@@ -156,7 +156,7 @@ module Test
|
|
156
156
|
if Dir[*Config.reabsorb_file_globs].
|
157
157
|
any? {|file| File.mtime(file) > @started_at }
|
158
158
|
then
|
159
|
-
|
159
|
+
reload_master_process
|
160
160
|
end
|
161
161
|
|
162
162
|
sleep 1
|
@@ -175,8 +175,9 @@ module Test
|
|
175
175
|
worker_pid = fork do
|
176
176
|
# capture test output in log file because tests are run in parallel
|
177
177
|
# which makes it difficult to understand interleaved output thereof
|
178
|
-
$stdout.reopen
|
179
|
-
$
|
178
|
+
$stdout.reopen log_file, 'w'
|
179
|
+
$stdout.sync = true
|
180
|
+
$stderr.reopen $stdout
|
180
181
|
|
181
182
|
# determine which test blocks have changed inside the test file
|
182
183
|
test_names = Diff::LCS.diff(old_lines, new_lines).flatten.map \
|