projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
19466: Fix tests
[arvados.git]
/
sdk
/
cwl
/
tests
/
wf
/
check_mem.py
diff --git
a/sdk/cwl/tests/wf/check_mem.py
b/sdk/cwl/tests/wf/check_mem.py
index 55b7b19430dc6a05a6ffde432ffb33a8d7aaa8c1..b4322a809320b7be5823296f6cb72a39d4273f24 100644
(file)
--- a/
sdk/cwl/tests/wf/check_mem.py
+++ b/
sdk/cwl/tests/wf/check_mem.py
@@
-1,3
+1,10
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+from __future__ import print_function
+from __future__ import division
+
import arvados
import sys
import os
import arvados
import sys
import os
@@
-5,7
+12,7
@@
import os
if "JOB_UUID" in os.environ:
requested = arvados.api().jobs().get(uuid=os.environ["JOB_UUID"]).execute()["runtime_constraints"]["min_ram_mb_per_node"]
else:
if "JOB_UUID" in os.environ:
requested = arvados.api().jobs().get(uuid=os.environ["JOB_UUID"]).execute()["runtime_constraints"]["min_ram_mb_per_node"]
else:
- requested = arvados.api().containers().current().execute()["runtime_constraints"]["ram"]
/
(1024*1024)
+ requested = arvados.api().containers().current().execute()["runtime_constraints"]["ram"]
//
(1024*1024)
print("Requested %d expected %d" % (requested, int(sys.argv[1])))
print("Requested %d expected %d" % (requested, int(sys.argv[1])))