@@ -20,7 +20,7 @@ test_that("successfully create github job package command line", {
2020test_that(" successfully create cran pool package command line" , {
2121 poolInstallation <-
2222 getPoolPackageInstallationCommand(" cran" , c(" hts" , " lubridate" , " tidyr" ))
23- expect_equal(length(poolInstallation ), 3 )
23+ expect_equal(length(poolInstallation ), 1 )
2424
2525 libPathCommand <-
2626 paste(
@@ -30,9 +30,7 @@ test_that("successfully create cran pool package command line", {
3030
3131 expected <-
3232 c(
33- paste(libPathCommand , " install.packages(args[1])\' hts" ),
34- paste(libPathCommand , " install.packages(args[1])\' lubridate" ),
35- paste(libPathCommand , " install.packages(args[1])\' tidyr" )
33+ paste(libPathCommand , " install.packages(args)\' hts lubridate tidyr" )
3634 )
3735
3836 expect_equal(poolInstallation , expected )
@@ -41,7 +39,7 @@ test_that("successfully create cran pool package command line", {
4139test_that(" successfully create github pool package command line" , {
4240 poolInstallation <-
4341 getPoolPackageInstallationCommand(" github" , c(" Azure/doAzureParallel" , " Azure/rAzureBatch" ))
44- expect_equal(length(poolInstallation ), 2 )
42+ expect_equal(length(poolInstallation ), 1 )
4543
4644 libPathCommand <-
4745 paste(
@@ -51,8 +49,7 @@ test_that("successfully create github pool package command line", {
5149
5250 expected <-
5351 c(
54- paste(libPathCommand , " devtools::install_github(args[1])\' Azure/doAzureParallel" ),
55- paste(libPathCommand , " devtools::install_github(args[1])\' Azure/rAzureBatch" )
52+ paste(libPathCommand , " devtools::install_github(args)\' Azure/doAzureParallel Azure/rAzureBatch" )
5653 )
5754
5855 expect_equal(poolInstallation , expected )
@@ -61,15 +58,11 @@ test_that("successfully create github pool package command line", {
6158test_that(" successfully create bioconductor pool package command line" , {
6259 poolInstallation <-
6360 getPoolPackageInstallationCommand(" bioconductor" , c(" IRanges" , " a4" ))
64- cat(poolInstallation )
65- expect_equal(length(poolInstallation ), 2 )
6661
6762 expected <-
6863 c(
6964 paste(" Rscript /mnt/batch/tasks/startup/wd/install_bioconductor.R" ,
7065 " IRanges" ,
71- sep = " " ),
72- paste(" Rscript /mnt/batch/tasks/startup/wd/install_bioconductor.R" ,
7366 " a4" ,
7467 sep = " " )
7568 )
0 commit comments