#/bin/sh
mkdir pytest_index
/usr/local/bin/pytest master/cases  -v --alluredir=$WORKSPACE/allure-results  --html=$WORKSPACE/pytest_index/index.html
curl -X POST -H "Content-Type: application/json" \
        -d '{"msg_type":"text","content":{"text":"测试结果: https://jenkins-on.yishihui.com/job/%E6%8E%A5%E5%8F%A3%E7%9B%91%E6%8E%A7%E8%87%AA%E5%8A%A8%E5%AE%9A%E6%97%B6%E8%BF%90%E8%A1%8C/allure/"}}'  \
      https://open.feishu.cn/open-apis/bot/v2/hook/328be50b-624c-4ff9-844c-b90c7cf0acb8
