Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[T1] python new pipeline #16393

Merged
merged 1 commit into from
Jan 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/automation_generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ python -m packaging_tools.auto_codegen "$1" "$TMPDIR/venv-sdk/auto_temp.json" 2>
echo "[Generate] codegen done!!!"
python -m packaging_tools.auto_package "$TMPDIR/venv-sdk/auto_temp.json" "$2" 2>&1
echo "[Generate] generate done!!!"

if [ ! -f "$2" ]; then
echo "$2 does not exist!!!"
exit 1
fi
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ def execute_simple_command(cmd_line, cwd=None, shell=False, env=None):
process.wait()
output = "\n".join(output_buffer)
if process.returncode:
# print necessary error info
for i in range(-min(len(output_buffer), 5), 0):
print(f'[Autorest] {output_buffer[i]}')

raise subprocess.CalledProcessError(
process.returncode,
cmd_line,
Expand Down