]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
run-make-check.sh: Make DRY_RUN actually do a dry run
authorBrad Hubbard <bhubbard@redhat.com>
Thu, 15 Sep 2016 10:04:39 +0000 (20:04 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Thu, 15 Sep 2016 10:08:52 +0000 (20:08 +1000)
The "cd build" command will cause an error during a dry run if the directory
does not exist.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
run-make-check.sh

index 05230adfd5e35925bdcdcd49ac3b6b828e388e3a..df073d81b55803385ca3ec9d02714f199fa15115 100755 (executable)
@@ -67,7 +67,7 @@ function run() {
     export TMPDIR=$(mktemp -d --tmpdir ceph.XXX)
     if test -x ./do_cmake.sh ; then
         $DRY_RUN ./do_cmake.sh $@ || return 1
-        cd build
+        $DRY_RUN cd build
         $DRY_RUN make $BUILD_MAKEOPTS tests || return 1
         $DRY_RUN ctest $CHECK_MAKEOPTS --output-on-failure || return 1
     else