#1394 Use the z option when mounting container volumes to allow sharing
Merged 4 years ago by mprahl. Opened 4 years ago by mprahl.

file modified
+5 -1
@@ -34,7 +34,7 @@ 

  test_container_name="mbs-test"

  db_container_name="mbs-test-db"

  source_dir="$(realpath "$(dirname "$0")/..")"

- volume_mount="${source_dir}:/src:Z"

+ volume_mount="${source_dir}:/src:z"

  db_name=mbstest

  db_password=mbstest

  pgdb_uri="postgresql+psycopg2://postgres:${db_password}@db/${db_name}"
@@ -48,6 +48,10 @@ 

      test_image="${image_ns}/mbs-test-centos"

  fi

  

+ if [ -n "$with_pgsql" ]; then

+     test_container_name="${test_container_name}-pgsql"

+ fi

+ 

  now=$(date +"%H%M%S")

  db_container_name="${db_container_name}-$now"

  test_container_name="${test_container_name}-$now"

This allows parallel execution of the unit tests.

1 new commit added

  • Use a different container name when running the unit tests with Postgres
4 years ago

We should add

if [ -n "$with_pgsql" ]; then
    test_container_name="${test_container_name}-pgsql"
fi

somewhere around line 50 to avoid names conflicting.

2 new commits added

  • Use a different container name when running the unit tests with Postgres
  • Use the z option when mounting container volumes to allow sharing
4 years ago

Pull-Request has been merged by mprahl

4 years ago