Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/rpgUnit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class RPGUnit implements IBMiComponent {
'MBROPT': `*REPLACE`
});
Logger.log(LogLevel.Info, `Transferring RPGUNIT save file to ${config.tempLibrary}.LIB: ${transferCommand}`);
const transferResult = await connection.runCommand({ command: transferCommand, environment: `ile`, noLibList: true });
const transferResult = await connection.runCommand({ command: transferCommand, environment: `system`, noLibList: true });
if (transferResult.code !== 0) {
Logger.logWithNotification(LogLevel.Error, `Failed to transfer save file`, transferResult.stderr);
return state;
Expand All @@ -198,7 +198,7 @@ export class RPGUnit implements IBMiComponent {
'RSTLIB': productLibrary
});
Logger.log(LogLevel.Info, `Restoring RPGUNIT save file contents into ${productLibrary}.LIB: ${restoreCommand}`);
const restoreResult = await connection.runCommand({ command: restoreCommand, environment: `ile`, noLibList: true });
const restoreResult = await connection.runCommand({ command: restoreCommand, environment: `system`, noLibList: true });
if (restoreResult.code !== 0) {
Logger.logWithNotification(LogLevel.Error, `Failed to restore save file contents`, restoreResult.stderr);
return state;
Expand Down
3 changes: 2 additions & 1 deletion src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ export class IBMiTestRunner {
let testResult: any;
try {
const env = workspaceFolder ? (await Utils.getEnvConfig(workspaceFolder)) : {};
testResult = await connection.runCommand({ command: testCommand, environment: `ile`, env: env });
const environment = isCodeCoverageEnabled ? 'system' : 'ile';
testResult = await connection.runCommand({ command: testCommand, environment: environment, env: env });
} catch (error: any) {
if (isTestCase) {
TestLogger.logTestCaseErrored(run, item, this.metrics, undefined, undefined, [{ message: error.message ? error.message : error }]);
Expand Down