soda 1.1.18 → 1.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/Soda.rb +15 -20
  2. data/lib/sodainfo.rb +1 -1
  3. metadata +4 -4
@@ -111,6 +111,7 @@ class Soda
111
111
  @SugarWait = false
112
112
  @restart_test_running = false
113
113
  @FAILEDTESTS = []
114
+ @GotWatchDog = false
114
115
  @vars = Hash.new
115
116
  blocked_file_list = "tests/modules/blockScriptList.xml"
116
117
  whitelist_file = "tests/modules/whitelist.xml"
@@ -828,11 +829,14 @@ class Soda
828
829
 
829
830
  if (@non_lib_test_count >= @restart_count)
830
831
  @rep.log("Restarting browser.\n")
831
-
832
- begin
833
- @browser.close()
834
- sleep(1)
835
- rescue Exception => e
832
+
833
+ if (!@GotWatchDog)
834
+ begin
835
+ @browser.close()
836
+ sleep(1)
837
+ rescue Exception => e
838
+ end
839
+ @GotWatchDog = false
836
840
  end
837
841
 
838
842
  RestartGlobalTime()
@@ -2765,6 +2769,7 @@ JSCode
2765
2769
  @rep.ReportFailure(msg)
2766
2770
  PrintDebug("Global Time was: #{$global_time}\n")
2767
2771
  PrintDebug("Timeout Time was: #{time_check}\n")
2772
+ @GotWatchDog = true
2768
2773
  @rep.IncTestWatchDogCount()
2769
2774
  begin
2770
2775
  result_dir = @rep.GetResultDir()
@@ -2908,13 +2913,15 @@ JSCode
2908
2913
  end
2909
2914
 
2910
2915
  tests.each do |test|
2911
- # next if (remBlockScript(test))
2912
2916
  test_order += 1
2913
2917
  tmp_result = {}
2918
+ test_basename = File.basename(test, ".xml")
2914
2919
  tmp_result['result'] = run(test, false, true, suite_name)
2915
2920
  tmp_result['Test_Order'] = test_order
2916
2921
  tmp_result.merge!(@rep.GetRawResults)
2917
-
2922
+ tmp_result['Real_Test_Name'] = test
2923
+ logfile = tmp_result['Test Log File']
2924
+
2918
2925
  if (tmp_result['Test Failure Count'].to_i != 0)
2919
2926
  tmp_result['result'] = -1
2920
2927
  elsif (tmp_result['Test JavaScript Error Count'].to_i != 0)
@@ -2925,19 +2932,7 @@ JSCode
2925
2932
  tmp_result['result'] = -1
2926
2933
  end
2927
2934
 
2928
- tmp_result['Real_Test_Name'] = test
2929
- test_basename = File.basename(test, ".xml")
2930
- logfile = tmp_result['Test Log File']
2931
- if (logfile =~ /#{test_basename}-\d+/)
2932
- test =~ /(.*\/)#{test_basename}/
2933
- ran_test_name = $1
2934
- ran_test_name << File.basename(logfile, ".log")
2935
- ran_test_name << ".xml"
2936
- else
2937
- ran_test_name = test
2938
- end
2939
-
2940
- result[ran_test_name] = tmp_result
2935
+ result[test] = tmp_result
2941
2936
  @rep.ZeroTestResults()
2942
2937
  end
2943
2938
 
@@ -1,4 +1,4 @@
1
1
  require 'Soda'
2
2
 
3
- SODA_GEM_VERSION = "1.1.18"
3
+ SODA_GEM_VERSION = "1.1.19"
4
4
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soda
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 18
10
- version: 1.1.18
9
+ - 19
10
+ version: 1.1.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Trampus Richmond
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-07 00:00:00 -08:00
18
+ date: 2011-03-08 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency