tac-cli 0.0.5 → 0.0.6
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/lib/cli/commands/test_suite_management.rb +8 -4
- data/lib/cli/version.rb +1 -1
- metadata +1 -1
@@ -96,16 +96,20 @@ module CTT::Cli::Command
|
|
96
96
|
# dependency should be successful before run testing command
|
97
97
|
say("preparing test suite: #{@suite}...")
|
98
98
|
dependencies.each do |d|
|
99
|
-
`#{d}`
|
100
|
-
|
99
|
+
output = `#{d}`
|
100
|
+
unless $? == 0
|
101
|
+
say(output)
|
102
|
+
say("fail to execute dependency command: #{d}. abort!", :red)
|
103
|
+
exit(1)
|
104
|
+
end
|
101
105
|
end
|
102
106
|
|
103
107
|
say("\nrun command: #{yellow(command)}")
|
104
108
|
system(command)
|
105
109
|
end
|
106
|
-
Dir.chdir(pwd)
|
107
|
-
threads.each { |t| t.join }
|
108
110
|
|
111
|
+
threads.each { |t| t.join }
|
112
|
+
Dir.chdir(pwd)
|
109
113
|
collector = ClientCollector.new(@runner.command, @suite, @runner)
|
110
114
|
collector.post
|
111
115
|
end
|
data/lib/cli/version.rb
CHANGED