From: William Roberts <william.c.roberts@xxxxxxxxx> Not everyone's github project is "selinux" so use the projects name, as derived from TRAVIS_BUILD_DIR. TRAVIS_BUILD_DIR is the absolute path to the project checkout on disk, so the basename should be sufficient. Tested on Travis CI here: - https://travis-ci.org/github/williamcroberts/selinux/jobs/697201376 Signed-off-by: William Roberts <william.c.roberts@xxxxxxxxx> --- scripts/ci/travis-kvm-setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ci/travis-kvm-setup.sh b/scripts/ci/travis-kvm-setup.sh index 864dbac96a46..ceedaa6f4e27 100755 --- a/scripts/ci/travis-kvm-setup.sh +++ b/scripts/ci/travis-kvm-setup.sh @@ -120,6 +120,7 @@ fi # we don't get blocked on asking to add the servers key to # our known_hosts. # -ssh -tt -o StrictHostKeyChecking=no -o LogLevel=QUIET "root@$ipaddy" "/root/selinux/$TEST_RUNNER" +project_dir="$(basename "$TRAVIS_BUILD_DIR")" +ssh -tt -o StrictHostKeyChecking=no -o LogLevel=QUIET "root@$ipaddy" "/root/$project_dir/$TEST_RUNNER" exit 0 -- 2.17.1