Ai
2 Star 1 Fork 0

Andieqqq/playwright-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test-reference-count.sh 571 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
set -e
NOT_ALLOWED_REFERENCES=("Dialog" "Request" "Route")
OUTPUT=$(python buildbots/assets/test-reference-count-async.py)
if [[ "$OUTPUT" != *"PW-OK"* ]]; then
echo "Script did not run successfully!"
echo "Output: $OUTPUT"
exit 1
fi
for CLASS_NAME in ${NOT_ALLOWED_REFERENCES[*]}; do
echo "Checking $CLASS_NAME"
if [[ "$OUTPUT" == *"$CLASS_NAME"* ]]; then
echo "There are $CLASS_NAME references in the memory!"
echo "Output: $OUTPUT"
exit 1
fi
echo "Check $CLASS_NAME passed"
done
echo "-> Reference count assertions passed!"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Yyaqq/playwright-python.git
git@gitee.com:Yyaqq/playwright-python.git
Yyaqq
playwright-python
playwright-python
master

搜索帮助