]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: docker-test.sh commands are relative to git root
authorLoic Dachary <ldachary@redhat.com>
Sun, 21 Dec 2014 08:33:46 +0000 (09:33 +0100)
committerLoic Dachary <ldachary@redhat.com>
Sun, 21 Dec 2014 16:52:18 +0000 (17:52 +0100)
Instead of being in the src directory. Forcing the working directory to
src is convenient to run unittests individually without the need to
change directory, but it is confusing to the user.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/test/docker-test-helper.sh

index 108f4b012cbbc7cf5a3d0c54e442d09dcc3f5bd9..d2ebc236539ce4a00dbad768f6a2750b3f480365 100755 (executable)
@@ -139,7 +139,7 @@ function run_in_docker() {
     if test "$script" = "bash" ; then
         $cmd --tty --interactive --workdir $downstream $user $dev $image bash
     else
-        if ! $cmd --workdir $downstream/src $user $dev $image "$@" ; then
+        if ! $cmd --workdir $downstream $user $dev $image "$@" ; then
             status=1
         fi
     fi