Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
gpu-base-image-build
Commits
8a9a5632
Commit
8a9a5632
authored
Oct 29, 2024
by
chenpangpang
Browse files
feat: 测试代码改为运行
parent
57dd0583
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
auto_build.py
auto_build.py
+4
-4
No files found.
auto_build.py
View file @
8a9a5632
...
@@ -191,10 +191,10 @@ def run():
...
@@ -191,10 +191,10 @@ def run():
test_commands
.
append
(
test_commands
.
append
(
f
"mv gpu-base-image-test/pytorch/stable-diffusion-v1-4/output.png
{
image_result_dir
}
"
)
f
"mv gpu-base-image-test/pytorch/stable-diffusion-v1-4/output.png
{
image_result_dir
}
"
)
#
#
执行测试命令
# 执行测试命令
#
for test_command in test_commands:
for
test_command
in
test_commands
:
#
logger.info(f"执行测试: {test_command}")
logger
.
info
(
f
"执行测试:
{
test_command
}
"
)
#
subprocess.run(test_command, shell=True)
subprocess
.
run
(
test_command
,
shell
=
True
)
# 生成打包后的镜像文件名,替换 ":" 为 "-" 并添加 ".tar" 后缀
# 生成打包后的镜像文件名,替换 ":" 为 "-" 并添加 ".tar" 后缀
tar_file
=
f
"
{
image_name
.
replace
(
':'
,
'-'
)
}
.tar"
tar_file
=
f
"
{
image_name
.
replace
(
':'
,
'-'
)
}
.tar"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment