提交 06de85ef authored 作者: 陈泽健's avatar 陈泽健

refactor(预定系统): 移除日志文件和打包程序- 删除了预定系统的日志文件 LZZSH-INFO-AND-ERROR.log

- 删除了预定系统的打包程序打包程序.spec
- 修改了定时执行功能测试.py 中的端口号
上级 1a1226b7
Binary files "a/\351\242\204\345\256\232\347\263\273\347\273\237/LZZSH-INFO-AND-ERROR.log" and /dev/null differ
......@@ -20,7 +20,7 @@ if not os.path.isdir(cases_dir):
调试主机-执行指令:
1.打开一个终端输入:
- cd .\预定系统\
- python -m http.server 80 --directory reports
- python -m http.server 81 --directory reports
2.打开新终端输入:
- cd .\预定系统\ngrok\ngrok-调试主机\
- .\start.bat
......
# 打包程序.spec
import os
import sys
from PyInstaller.utils.hooks import collect_data_files, collect_submodules
from PyInstaller.building.build_main import Analysis
block_cipher = None
current_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
def get_all_subdirectories(root_dir):
subdirs = []
for root, dirs, _ in os.walk(root_dir):
for d in dirs:
full_path = os.path.join(root, d)
rel_path = os.path.relpath(full_path, current_dir)
subdirs.append((full_path, rel_path))
return subdirs
hiddenimports = [
'Base.base',
'pull_remote_devlop',
*collect_submodules('hytest'),
]
datas = [
*collect_data_files('cases'),
('Base', 'Base'),
('测试数据', '测试数据'),
('log', 'log'),
('reports', 'reports'),
('ngrok', 'ngrok'),
('cases', 'cases'),
('config.json', '.'),
('Server_Config.json', '.'),
('pull_remote_devlop.py', '.'),
] + collect_data_files('hytest')
try:
a = Analysis(
['定时执行功能测试.py'],
pathex=['.'],
binaries=[],
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
)
except Exception as e:
print(f"[ERROR] Analysis failed: {e}")
raise
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='定时执行功能测试',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
icon=None,
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='定时执行功能测试'
)
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论