Skip to content

Commit 14fec1a

Browse files
authored
Merge pull request #211 from mathworks/jdhameli-debugger-tests
Add test workaround for clc
2 parents 29bd01a + 718d634 commit 14fec1a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/test/tools/tester/TerminalTester.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ export class TerminalTester {
1919
* Execute a command in the MATLAB terminal
2020
*/
2121
public async executeCommand (command: string): Promise<void> {
22-
return await this.terminal.executeCommand(command);
22+
if (command.endsWith('clc')) {
23+
return await this.terminal.executeCommand(`${command}, disp(' ')`); // workaround since clc is broken in 22b
24+
}
25+
return await this.terminal.executeCommand(command)
2326
}
2427

2528
/**

0 commit comments

Comments
 (0)