seba_on_arm: Fix docker run without TTY 97/3397/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 1 May 2020 15:38:22 +0000 (17:38 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 1 May 2020 20:37:38 +0000 (20:37 +0000)
Jenkins does not currently spawn a login shell for the SEBA tests script
execution, so drop `-it` from `docker run` to prevent errors like
"the input device is not a TTY".

Change-Id: Iac324891ec3e313df94a5280062df7ea11477da2
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
src/use_cases/seba_on_arm/test/ponsim/test.sh

index 8a30905..65247f2 100755 (executable)
@@ -23,7 +23,7 @@ trap f_clean EXIT
 
 f_clean(){
   echo "Execution finished, cleaning up"
-  chmod -R 777 results
+  sudo chmod -R 777 results
 }
 
 if ! [ -d "${KUBE_DIR}" ]
@@ -33,7 +33,7 @@ then
 fi
 
 docker pull "${CORD_IMG}"
-docker run --rm -it \
+docker run --rm \
     -e K8S_MASTER_IP=${K8S_MASTER_IP} \
     -e USER=${TEST_USER} \
     -v ${basepath}/docker_run.sh:/workspace/docker_run.sh \