diff --git a/autotest.sh b/autotest.sh
index 73ba74009f2a526ead790410566605fd41659ff8..460fa9e38b178d5d9b06007d63f0d0d23d3217a6 100755
--- a/autotest.sh
+++ b/autotest.sh
@@ -270,8 +270,9 @@ function execute_tests {
 	fi
 
 	if [ "$PRIMARY_STORAGE_CONFIG" == "swift" ] ; then
+		cd ..
 		echo "Kill the swift docker"
-		objectstore/stop-swift-ceph.sh
+		tests/objectstore/stop-swift-ceph.sh
 	fi
 
 	if [ ! -z "$DOCKER_CONTAINER_ID" ] ; then