aboutsummaryrefslogtreecommitdiffstats
path: root/ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/recipes/sanityUiTests_3_sanity_execution.rb
blob: 5f9ca0a3d118aeb927b3bbc3d05002201aa431cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
tests_base="/var/lib/tests"
ci_test_suite="#{ENV['SUITE_NAME']}.xml"

bash "echo status" do
   code <<-EOH
     echo "DOCKER STARTED"
   EOH
end

bash "run asdc ci sanity tests" do
cwd "#{tests_base}"
code <<-EOH
   cd "#{tests_base}"
   jar_file=`ls ui-ci*-jar-with-dependencies.jar`
   ./startTest.sh $jar_file #{ci_test_suite} > #{tests_base}/target/startTest.log 2>&1
   echo "return code from startTest.sh = [$?]"
   echo "DOCKER STARTED"
EOH
end