Skip to content

Commit fe32ad8

Browse files
committed
.
1 parent 20b2252 commit fe32ad8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/integration/test_job.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@ def test_run_date(self):
3636
self.assertTrue(len(stdout) > 0)
3737
print(stdout)
3838

39+
def test_exec_date(self):
40+
print("*** test_run_date")
41+
client = self.get_client()
42+
job = client.execute("date")
43+
print(job)
44+
job.cache_time = 0
45+
job.poll()
46+
exit_code = int(job.properties["exitCode"])
47+
self.assertEqual(0, exit_code)
48+
work_dir = job.working_dir
49+
stdout = work_dir.stat("/stdout").read()
50+
self.assertTrue(len(stdout) > 0)
51+
print(stdout)
52+
3953
def test_run_uploaded_script(self):
4054
print("*** test_run_uploaded_script")
4155
client = self.get_client()

0 commit comments

Comments
 (0)