Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Opareva committed Oct 7, 2021
1 parent 12d30fc commit c462a18
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 233 deletions.
2 changes: 1 addition & 1 deletion Tasks/JavaToolInstallerV0/Tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('JavaToolInstaller L0 Suite', function () {

testRunner.run();

assert(testRunner.stdOutContained('jdkArchiveName: DestinationDirectory\\JDKname.tar.gz'), 'JDK archive should unpack in the right destination directory');
assert(testRunner.stdOutContained('jdkFileName: DestinationDirectory\\JDKname.tar.gz'), 'JDK archive should unpack in the right destination directory');
assert(testRunner.succeeded, 'task should have succeeded.');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ process.env['ENDPOINT_DATA_ARM1_subscriptionId'] = 'dummySubscriptionId';

const a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"stats": {
"DestinationDirectory/JDKname.tar.gz": true,
"DestinationDirectory\\JDKname.tar.gz": true,
},
"find": {
Expand Down Expand Up @@ -108,7 +109,7 @@ mfsClone.lstatSync = function(variable: string) {
};

mfsClone.existsSync = function (variable: string) {
if (variable === "DestinationDirectory\\econdlevelJDK2") {
if (variable === "DestinationDirectory/econdlevelJDK2" || variable === "DestinationDirectory\\econdlevelJDK2" ) {
return false;
} else return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ process.env['ENDPOINT_DATA_ARM1_subscriptionId'] = 'dummySubscriptionId';
const a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"stats": {
"DestinationDirectory\\JDKname.tar.gz": true,
"DestinationDirectory/JDKname.tar.gz": true,
},
"find": {
"DestinationDirectory": ["rootJDK/", "rootJDK/secondlevelJDK2"],
Expand Down Expand Up @@ -109,7 +110,7 @@ mfsClone.lstatSync = function(variable: string) {
};

mfsClone.existsSync = function (variable: string) {
if (variable === "DestinationDirectory\\econdlevelJDK2") {
if (variable === "DestinationDirectory/econdlevelJDK2" || variable === "DestinationDirectory\\econdlevelJDK2" ) {
return false;
} else return true;
}
Expand Down
243 changes: 13 additions & 230 deletions Tasks/JavaToolInstallerV0/Tests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c462a18

Please sign in to comment.