Make the parallelize intergration test short enough to run at
authorScott Gasch <[email protected]>
Thu, 3 Feb 2022 23:42:44 +0000 (15:42 -0800)
committerScott Gasch <[email protected]>
Thu, 3 Feb 2022 23:42:44 +0000 (15:42 -0800)
checkin time and enable it.

tests/parallelize_itest.py
tests/run_tests.sh

index 6ac95380c5a9a132fb7c43172d1a30d0ce59e2ee..d09e9f39acb95db3f7a592d182aa046c6306ac20 100755 (executable)
@@ -3,9 +3,9 @@
 import sys
 
 import bootstrap
-import parallelize as p
 import decorator_utils
 import executors
+import parallelize as p
 import smart_future
 
 
@@ -60,7 +60,7 @@ def test_process_parallelization() -> None:
 @decorator_utils.timed
 def test_remote_parallelization() -> None:
     results = []
-    for _ in range(50):
+    for _ in range(10):
         results.append(compute_factorial_remote(_))
     for result in smart_future.wait_any(results):
         print(result)
index 016ac446467771c4ffde9f53d483cd6845830497..6255a69572bb2d232ea35955d8607269049ce392 100755 (executable)
@@ -143,8 +143,8 @@ fi
 if [ ${INTEGRATION} -eq 1 ]; then
     for test in $(find ${ROOT} -name "*_itest.py" -print); do
         BASE=$(basename ${test})
-        BASE="${BASE} (integration test)"
-        make_header "${BASE}" "${ORANGE}"
+        HDR="${BASE} (integration test)"
+        make_header "${HDR}" "${ORANGE}"
         if [ ${COVERAGE} -eq 1 ]; then
             coverage run --source ${HOME}/lib --append ${test}
         else