Skip to content

Commit

Permalink
fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
jealous committed Aug 1, 2023
1 parent c7d51e0 commit 83504f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class FloatGridExecutor extends AbstractGridExecutor {
}

/**
* Parse the string returned by the {@code float sbatch} and extract
* Parse the string returned by the {@code float submit} and extract
* the job ID string
*
* @param text The string returned when submitting the job
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class FloatBaseTest extends BaseTest {
return ['float', '-a', param.addr ?: addr,
'-u', user,
'-p', pass,
'sbatch',
'submit',
'--dataVolume', param.nfs ?: nfs + ':' + workDir,
'--image', param.image ?: image,
'--cpu', param.cpu ?: cpu.toString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ class FloatGridExecutorMultiOCTest extends FloatBaseTest {

then:
cmd1.join(' ') == "float -a fa -u ${user} -p ${pass} " +
"squeue --format json"
"list --format json"
cmd2.join(' ') == "float -a fb -u ${user} -p ${pass} " +
"squeue --format json"
"list --format json"
}

def "input multiple addresses as list"() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class FloatGridExecutorTest extends FloatBaseTest {
cmd.join(' ') == ['float', '-a', addr,
'-u', user,
'-p', pass,
'scancel', '-j', jobID].join(' ')
'cancel', '-j', jobID].join(' ')
}

def "kill commands"() {
Expand All @@ -73,7 +73,7 @@ class FloatGridExecutorTest extends FloatBaseTest {
return ['float', '-a', addr,
'-u', user,
'-p', pass,
'scancel', '-j', jobID, '-f'].join(' ')
'cancel', '-j', jobID, '-f'].join(' ')
}

then:
Expand Down Expand Up @@ -354,7 +354,7 @@ class FloatGridExecutorTest extends FloatBaseTest {
cmd == ['float', '-a', addr,
'-u', user,
'-p', pass,
'squeue', '--format', 'json']
'list', '--format', 'json']
}

def "retrieve the credentials from env"() {
Expand Down

0 comments on commit 83504f9

Please sign in to comment.