Polyspace command line execution

27 views (last 30 days)
Kalai Ragu
Kalai Ragu on 20 Sep 2024
Edited: Kalai Ragu on 13 Nov 2024 at 17:03
This question was flagged by Walter Roberson

  2 Comments
Jatin
Jatin on 20 Sep 2024
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.
Kalai Ragu
Kalai Ragu on 20 Sep 2024
@Jatin yes you are right.. but am trying to automate that step ... so not sure where to provide

Sign in to comment.

Answers (1)

Kothuri
Kothuri on 8 Nov 2024 at 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

Tags

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!