@@ -44,32 +44,32 @@ expect () {
44
44
45
45
version=$( python get_version.py)
46
46
47
- PASS =0
48
- FAIL =1
47
+ OK =0
48
+ ERROR =1
49
49
50
- expect $PASS " Successfully installed tensorflow-determinism" \
51
- ./install_package.sh
50
+ expect $OK " Successfully installed tensorflow-determinism" \
51
+ ./install_package.sh
52
52
53
- expect $FAIL " Exception: tfdeterminism: TensorFlow inside NGC containers does not require patching" \
54
- ./container.sh nvcr.io/nvidia/tensorflow:19.09-py2 test_patch_apply.sh
53
+ expect $ERROR " Exception: tfdeterminism: TensorFlow inside NGC containers does not require patching" \
54
+ ./container.sh nvcr.io/nvidia/tensorflow:19.09-py2 test_patch_apply.sh
55
55
56
- expect $FAIL " Exception: tfdeterminism: No patch available for version 1.13.1 of TensorFlow" \
57
- ./container.sh tensorflow/tensorflow:1.13.1-gpu test_patch_apply.sh
56
+ expect $ERROR " Exception: tfdeterminism: No patch available for version 1.13.1 of TensorFlow" \
57
+ ./container.sh tensorflow/tensorflow:1.13.1-gpu test_patch_apply.sh
58
58
59
- expect $PASS " TensorFlow version 1.14.0 has been patched using tfdeterminism version ${version} " \
60
- ./container.sh tensorflow/tensorflow:1.14.0-gpu test_patch_apply.sh
59
+ expect $OK " TensorFlow version 1.14.0 has been patched using tfdeterminism version ${version} " \
60
+ ./container.sh tensorflow/tensorflow:1.14.0-gpu test_patch_apply.sh
61
61
62
- expect $PASS " " \
63
- ./container.sh tensorflow/tensorflow:1.14.0-gpu test_patch.sh
62
+ expect $OK " " \
63
+ ./container.sh tensorflow/tensorflow:1.14.0-gpu test_patch.sh
64
64
65
- expect $PASS " " \
66
- ./container.sh tensorflow/tensorflow:1.14.0-gpu-py3 test_patch.sh
65
+ expect $OK " " \
66
+ ./container.sh tensorflow/tensorflow:1.14.0-gpu-py3 test_patch.sh
67
67
68
- expect $PASS " " \
69
- ./container.sh tensorflow/tensorflow:1.15.0rc2-gpu test_patch.sh
68
+ expect $OK " " \
69
+ ./container.sh tensorflow/tensorflow:1.15.0rc2-gpu test_patch.sh
70
70
71
- expect $FAIL " Exception: tfdeterminism: No patch available for version 2.0.0 of TensorFlow" \
72
- ./container.sh tensorflow/tensorflow:2.0.0-gpu test_patch.sh
71
+ expect $ERROR " Exception: tfdeterminism: No patch available for version 2.0.0 of TensorFlow" \
72
+ ./container.sh tensorflow/tensorflow:2.0.0-gpu test_patch.sh
73
73
74
74
echo " ${PASS_COUNT} tests passed"
75
75
echo " ${FAIL_COUNT} tests failed"
0 commit comments