diff options
Diffstat (limited to 'ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/recipes/sanityUiTests_3_sanity_execution.rb')
-rw-r--r-- | ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/recipes/sanityUiTests_3_sanity_execution.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/recipes/sanityUiTests_3_sanity_execution.rb b/ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/recipes/sanityUiTests_3_sanity_execution.rb new file mode 100644 index 0000000000..5f9ca0a3d1 --- /dev/null +++ b/ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/recipes/sanityUiTests_3_sanity_execution.rb @@ -0,0 +1,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 |