Browse Source

tests scripts: some comments

Mokhtar Naamani 3 years ago
parent
commit
2e063a4be8
2 changed files with 11 additions and 4 deletions
  1. 4 4
      tests/network-tests/run-migration-tests.sh
  2. 7 0
      tests/network-tests/run-tests.sh

+ 4 - 4
tests/network-tests/run-migration-tests.sh

@@ -68,9 +68,9 @@ function cleanup() {
     docker logs ${CONTAINER_ID} --tail 15
     docker stop ${CONTAINER_ID}
     docker rm ${CONTAINER_ID}
+    # docker-compose -f ../../docker-compose.yml down -v
     rm tests/network-tests/assets/TestChannel__rejectedContent.json
     rm tests/network-tests/assets/TestVideo__rejectedContent.json
-    
 }
 
 function pre_migration_hook() {
@@ -100,9 +100,9 @@ trap cleanup EXIT
 if [ "$TARGET_RUNTIME" == "$RUNTIME" ]; then
   echo "Not Performing a runtime upgrade."
 else
-    # pre migration hook
-    pre_migration_hook
-    
+  # pre migration hook
+  pre_migration_hook
+
   # Copy new runtime wasm file from target joystream/node image
   echo "Extracting wasm blob from target joystream/node image."
   id=`docker create joystream/node:${TARGET_RUNTIME}`

+ 7 - 0
tests/network-tests/run-tests.sh

@@ -65,11 +65,18 @@ function cleanup() {
     docker logs ${CONTAINER_ID} --tail 15
     docker stop ${CONTAINER_ID}
     docker rm ${CONTAINER_ID}
+    # docker-compose -f ../../docker-compose.yml down -v
 }
 
 trap cleanup EXIT
 
+sleep 3
+
 # Display runtime version
 yarn workspace api-scripts tsnode-strict src/status.ts | grep Runtime
 
+# Start any other services we want
+# docker-compose -f ../../docker-compose.yml up -d colossus-1
+
+# Execute tests
 ./run-test-scenario.sh $1