Workaround when running tests using Linux on Win
[nonrtric.git] / test / common / testcase_common.sh
index 3e1003d..dc5415b 100755 (executable)
@@ -1873,6 +1873,13 @@ __start_container() {
        appcount=$1
        shift
 
+       os_version=$(uname -a 2> /dev/null | awk '{print tolower($0)}' | grep "mircosoft")
+       if [[ "$os_version" == *"mircosoft"* ]]; then
+               echo -e $YELLOW" Workaround for Linux on Win - delay container start, 1 sec, to make sure files mounted in the container are available on disk - WLS problem"$EYELLOW
+               sleep 1
+       fi
+
+
        if [ "$compose_args" == "NODOCKERARGS" ]; then
                docker-compose -f $compose_file up -d &> .dockererr
                if [ $? -ne 0 ]; then