Polyspace command line execution
27 次查看(过去 30 天)
显示 更早的评论
此 个问题 已被 Walter Roberson
标记
2 个评论
Jatin
2024-9-20
The error message indicates that there is an issue with providing a username when connecting to the job scheduler on "LongTerm@polyspace.emea.zf-world.com". Make sure to provide a valid username when prompted.
回答(1 个)
Kothuri
2024-11-8,15:22
The error message indicates that the script is not receiving a username when trying to connect to the Polyspace job scheduler. You can try the below steps to resolve the error:
- Modify your script to include the username directly in the command. For example:
C:\Python35\python.exe
D:\Automation\D81_CNHTC\D81_CNHTC_IMP\mapfilesandbox_1.37\Application\Input\Build\EDE_AddOn\Scripts\polyspace.py -p PSW_TC297 -j -hl -op "server=LongTerm@polyspace.emea.zf-world.com" -op "author=Z0031027" -op "username=your_username" -op gen -op run -s
D:\Automation\D81_CNHTC\D81_CNHTC_IMP\mapfilesandbox_1.37\Application\Input\Build\PSW_TC297.pjt
- Ensure that the script correctly prompts for the username if it is not provided. You might need to add a prompt in the script to ask for the username.
- Set the username as an environment variable and modify the script to read from this variable. For example, you can use:
import os
username = os.getenv('POLYSPACE_USERNAME')
if not username:
username = input("Enter your Polyspace username: ")
- Verify that your Polyspace configuration files are correctly set up to include the necessary details and include the username.
You can refer the below link for more info on Polyspace Bug finder
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polyspace Code Prover 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!