grntest 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +6 -0
- data/lib/grntest/test-runner.rb +14 -8
- data/lib/grntest/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73a811783d638c6d6acf4eeb84a0308dbda6903b
|
4
|
+
data.tar.gz: e29b281351b0b295150c5959f33c3f3ff4d80d1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6897f2f50d59801a4e3845f25e71011bd8971677858e8cea720377008e10ae7bfbd9eea5c00fe66e6b21f8b8e4ae7af56223772436601006cfa4bf2144595251
|
7
|
+
data.tar.gz: c480933411acfac80d1d3cac6bf2212eb78b5e58fadfaf0482b11ce61af89e94e71c10ee2766c9bb2a6783c6c07487f56a5355ef4248bfa9bbfaac3afc7835f5
|
data/doc/text/news.md
CHANGED
data/lib/grntest/test-runner.rb
CHANGED
@@ -381,14 +381,20 @@ call chdir("#{context.temporary_directory_path}")
|
|
381
381
|
def ensure_process_finished(pid)
|
382
382
|
return if pid.nil?
|
383
383
|
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
384
|
+
[:TERM, :KILL].each do |signal|
|
385
|
+
n_retries = 0
|
386
|
+
loop do
|
387
|
+
finished_pid = Process.waitpid(pid, Process::WNOHANG)
|
388
|
+
return if finished_pid
|
389
|
+
n_retries += 1
|
390
|
+
return if n_retries > 100
|
391
|
+
begin
|
392
|
+
Process.kill(signal, pid)
|
393
|
+
rescue SystemCallError
|
394
|
+
$stderr.puts("#{signal} -> #{pid}: #{$!.class}: #{$!}")
|
395
|
+
end
|
396
|
+
sleep(0.1)
|
397
|
+
end
|
392
398
|
end
|
393
399
|
end
|
394
400
|
|
data/lib/grntest/version.rb
CHANGED