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

remove runnerfile from .matlab folder #219

Closed
wants to merge 3 commits into from

Conversation

dolonm-mw
Copy link
Member

Moving the runnerfile from .matlab folder to system temporary folder.

Copy link
Member

@nbhoski nbhoski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we are making much difference here by removing delete with movefile.

@@ -301,8 +301,8 @@ private int execMatlabCommand(FilePath workspace, Launcher launcher,
public String constructCommandForTest(FilePath scriptPath) {
final String matlabScriptName = getValidMatlabFileName(scriptPath.getBaseName());
final String runCommand = "addpath('" + scriptPath.getRemote().replaceAll("'", "''")
+ "'); " + matlabScriptName + ",delete('.matlab/" + scriptPath.getBaseName() + "/"
+ matlabScriptName + ".m'),runnerScript,rmdir(tmpDir,'s')";
+ "');tmpDir=tempname;mkdir(tmpDir), ,movefile('.matlab/" + scriptPath.getBaseName() + "/"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why move file here, Cant we keep the runner script as is and just call it here with simple script name

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dolonm-mw can you pls look into this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On it!

@nbhoski nbhoski closed this Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants