Bertrand Gouny 11 years ago
parent
commit
1546818b81
3 changed files with 6 additions and 2 deletions
  1. 2 0
      test/tools/end.sh
  2. 2 0
      test/tools/prepare.sh
  3. 2 2
      test/tools/run-container.sh

+ 2 - 0
test/tools/end.sh

@@ -1,5 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 
 
+
+rm -rf $testDir
 ./test/tools/delete-container.sh 
 ./test/tools/delete-container.sh 
 ./test/tools/delete-image.sh > /dev/null 2>&1
 ./test/tools/delete-image.sh > /dev/null 2>&1
 
 

+ 2 - 0
test/tools/prepare.sh

@@ -1,5 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 
 
+mkdir -p $testDir
+
 dir=$(dirname $0)
 dir=$(dirname $0)
 $dir/delete-container.sh
 $dir/delete-container.sh
 $dir/delete-image.sh
 $dir/delete-image.sh

+ 2 - 2
test/tools/run-container.sh

@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 
 
-echo "docker.io run --name $testContainer $runOptions -d $testImage"
-ID=`docker.io run --name $testContainer $runOptions -d $testImage`
+echo "docker.io run --name $testContainer $runOptions -d $testImage $runCommand"
+ID=`docker.io run --name $testContainer $runOptions -d $testImage $runCommand`
 sleep 10
 sleep 10
 
 
 echo " --> Obtaining IP"
 echo " --> Obtaining IP"