projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13b4d21
)
17816: Add test.
author
Tom Clegg <tom@curii.com>
Fri, 16 Jul 2021 14:44:57 +0000
(10:44 -0400)
committer
Peter Amstutz <peter.amstutz@curii.com>
Fri, 16 Jul 2021 14:58:48 +0000
(10:58 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
lib/crunchrun/executor_test.go
patch
|
blob
|
history
diff --git
a/lib/crunchrun/executor_test.go
b/lib/crunchrun/executor_test.go
index 4b6a4b1b2da89602c1601058a1a73b406f85e0ad..5934c57b6c5f90bf971664c614a8348fb18b9e50 100644
(file)
--- a/
lib/crunchrun/executor_test.go
+++ b/
lib/crunchrun/executor_test.go
@@
-141,6
+141,13
@@
func (s *executorSuite) TestExecEnableNetwork(c *C) {
}
}
+func (s *executorSuite) TestExecWorkingDir(c *C) {
+ s.spec.WorkingDir = "/tmp"
+ s.spec.Command = []string{"sh", "-c", "pwd"}
+ s.checkRun(c, 0)
+ c.Check(s.stdout.String(), Equals, "/tmp\n")
+}
+
func (s *executorSuite) TestExecStdoutStderr(c *C) {
s.spec.Command = []string{"sh", "-c", "echo foo; echo -n bar >&2; echo baz; echo waz >&2"}
s.checkRun(c, 0)