0
我在我的Ubuntu安裝泊塢窗所有的基本模塊,也是ODOO圖像作爲泊塢容器中運行我所有的自定義模塊,將odoo映像在docker上運行成功,但是我無法通過它運行我的測試腳本。我想運行的DOCKERIZED ODOO服務器腳本文件與
,我有我自己的腳本文件來調用運行我的自定義模塊和其他文件具有以下內容:
tests.sh
ADDONS_DIR="./addons"
DELETE_DB="dropdb testdb"
MODULE_LIST="hr_contract_leaves,hr_employee_birthdat_reminder,hr_employee_documents,hr_employee_emergency_contract,hr_employee_loan,hr_employee_medical_information,hr_employee_statutory_detail,hr_payslip_reports,hr_recruitment_interviewer,hr_recruitment_job_stage_survey,hr_recruitment_reports,account,account_accountant,board,calendar,contacts,crm,fleet,hr,hr_attendance,hr_expense,hr_holidays,hr_payroll,hr_recruitment,hr_timesheet,im_livechat,lunch,mail,maintenance,mass_mailing,mrp,mrp_repair,note,point_of_sale,project,project_issue,purchase,sale,survey,website,website_blog,website_event,website_forum,website_slides"
echo "Testing for modules: $MODULE_LIST"
RUN_ODOO="/gitlab-runner/gitlab-runner-server/odoo-bin --addons-path=/gitlab-runner/gitlab-runner-server/addons --log-level error -d testdb --init $MODULE_LIST --test-enable --stop-after-init 2>&1 | tee test_results.log"
echo "Starting tests with the following command: $RUN_ODOO"
eval $RUN_ODOO
echo "Tests Finished"
RESULT=$(grep "FAIL\|ERROR" test_results.log)
echo "Failure in tests: $RESULT"
echo "Cleaning up"
echo "Deleting Databse"
eval $DELETE_DB
echo "Database Deleted"
echo "Removing log file"
rm test_results.log
echo "Log file deleted"
echo "Clean up finished"
if [ ! -z "$RESULT" ]
then
echo "Failed"
exit 1
else
echo "PASSED"
exit 0
fi
請,有人可以幫助我在我的腳本文件通過docker odoo運行,因爲我是新的,所以我希望一步一步指導。
預先感謝您...
問題是什麼?無法運行某些東西並不能解釋發生了什麼問題 –
我想在我的docker odoo中運行此測試腳本,並且我希望它能夠執行它。 –
這仍然不能解釋你有什麼問題。請更具體一些,因爲這個問題很可能會因爲不清楚而關閉。 – halfer