Skip to content

Commit

Permalink
[wrong] write error titles
Browse files Browse the repository at this point in the history
wrong: this commit contains intentional issues or reserved a bug from previous commits intentionally in order to test the ci
  • Loading branch information
grqz authored Sep 15, 2024
1 parent c761f42 commit 8b61f0f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
cp -aT plugin/ ~/yt-dlp-plugins/bgutil-ytdlp-pot-provider/
- name: Test script method
run: |
script_response=$(./yt-dlp -vF --print-traffic BaW_jenozKc --extractor-args "youtube:getpot_bgutil_script=server/build/generate_once.js" 2>&1) || echo "::error title=PLACEHOLDER::Failed to run yt-dlp!"
script_response=$(./yt-dlp -vF --print-traffic BaW_jenozKc --extractor-args "youtube:getpot_bgutil_script=server/build/generate_once.js" 2>&1) || echo "::error title=Failed to run yt-dlp::Failed to run yt-dlp!"
echo $script_response
if [[ "$script_response" != *"BgUtilScriptPot: Generating POT via script"* ]]; then
echo "BgUtilScriptPot was not invoked"
Expand All @@ -67,11 +67,12 @@ jobs:
until curl --silent --fail http://127.0.0.1:4416/ping; do
sleep 0.5
done
script_response=$(./yt-dlp -vF --print-traffic BaW_jenozKc --extractor-args "youtube:getpot_bgutil_baseurl=http://127.0.0.1:4416" 2>&1) || echo "::error title=PLACEHOLDER::Failed to run yt-dlp!"
script_response=$(./yt-dlp -vF --print-traffic BaW_jenozKc --extractor-args "youtube:getpot_bgutil_baseurl=http://127.0.0.1:4416" 2>&1) || echo "::error title=Failed to run yt-dlp::Failed to run yt-dlp!"
echo $script_response
if [[ "$script_response" != *"BgUtilHTTPPot: Generating POT via HTTP server"* ]]; then
echo "BgUtilHTTPPot was not invoked"
echo "::error title=BgUtilHTTPPot was not invoked::BgUtilHTTPPot was not invoked"
echo "::error title=ERROR (...),file=/_file,line=1,col=1,endLine=1,endColumn=1::_file:1:1: msg"
echo "::error title=BgUtilHTTPPot was not invoked,file=plugin/yt_dlp_plugins/extractor/getpot_bgutil_http.py,line=1,col=1,endLine=1,endColumn=1::_file:1:1: msg placeholder"
echo "::error title=BgUtilHTTPPot was not invoked,file=/plugin/yt_dlp_plugins/extractor/getpot_bgutil_http.py,line=1,col=1,endLine=1,endColumn=1::_file:1:1: msg placeholder2"
exit 1
fi

0 comments on commit 8b61f0f

Please sign in to comment.