Skip to content

Commit

Permalink
fix hpc template test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstruck authored and buchanae committed May 24, 2018
1 parent 31b6cb4 commit 8c20f9b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions compute/hpc_backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestSetupTemplatedHPCSubmit(t *testing.T) {
{{printf "#TEST --disk %.1fGB" .DiskGb}}
{{- end}}
{{.Executable}} worker run --config {{.Config}}
funnel worker run --taskID {{.TaskId}}
`

b := HPCBackend{
Expand All @@ -68,11 +68,6 @@ func TestSetupTemplatedHPCSubmit(t *testing.T) {
t.Fatal(rerr)
}

binaryPath, err := detectFunnelBinaryPath()
if err != nil {
t.Fatal(err)
}

expected := `
#!/bin/bash
#TEST --name test-taskid
Expand All @@ -83,10 +78,10 @@ func TestSetupTemplatedHPCSubmit(t *testing.T) {
#TEST --mem 1GB
#TEST --disk 10.0GB
%s worker run --config %s/test-taskid/worker.conf.yml
funnel worker run --taskID test-taskid
`

expected = fmt.Sprintf(expected, tmp, tmp, binaryPath, tmp)
expected = fmt.Sprintf(expected, tmp, tmp)

if string(actual) != expected {
t.Log("Expected", "", expected)
Expand Down

0 comments on commit 8c20f9b

Please sign in to comment.