@@ -20,7 +20,7 @@ test_that("successfully create github job package command line", {
20
20
test_that(" successfully create cran pool package command line" , {
21
21
poolInstallation <-
22
22
getPoolPackageInstallationCommand(" cran" , c(" hts" , " lubridate" , " tidyr" ))
23
- expect_equal(length(poolInstallation ), 3 )
23
+ expect_equal(length(poolInstallation ), 1 )
24
24
25
25
libPathCommand <-
26
26
paste(
@@ -30,9 +30,7 @@ test_that("successfully create cran pool package command line", {
30
30
31
31
expected <-
32
32
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" )
36
34
)
37
35
38
36
expect_equal(poolInstallation , expected )
@@ -41,7 +39,7 @@ test_that("successfully create cran pool package command line", {
41
39
test_that(" successfully create github pool package command line" , {
42
40
poolInstallation <-
43
41
getPoolPackageInstallationCommand(" github" , c(" Azure/doAzureParallel" , " Azure/rAzureBatch" ))
44
- expect_equal(length(poolInstallation ), 2 )
42
+ expect_equal(length(poolInstallation ), 1 )
45
43
46
44
libPathCommand <-
47
45
paste(
@@ -51,8 +49,7 @@ test_that("successfully create github pool package command line", {
51
49
52
50
expected <-
53
51
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" )
56
53
)
57
54
58
55
expect_equal(poolInstallation , expected )
@@ -61,15 +58,11 @@ test_that("successfully create github pool package command line", {
61
58
test_that(" successfully create bioconductor pool package command line" , {
62
59
poolInstallation <-
63
60
getPoolPackageInstallationCommand(" bioconductor" , c(" IRanges" , " a4" ))
64
- cat(poolInstallation )
65
- expect_equal(length(poolInstallation ), 2 )
66
61
67
62
expected <-
68
63
c(
69
64
paste(" Rscript /mnt/batch/tasks/startup/wd/install_bioconductor.R" ,
70
65
" IRanges" ,
71
- sep = " " ),
72
- paste(" Rscript /mnt/batch/tasks/startup/wd/install_bioconductor.R" ,
73
66
" a4" ,
74
67
sep = " " )
75
68
)
0 commit comments