From 4eec99e2408768e4bebb3e4f98cd62a0b01b6721 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Fri, 6 Oct 2017 16:00:33 +0000 Subject: [PATCH] fixup! tests/vmcheck: add test for refresh-md and --cache-only --- tests/vmcheck/test-basic.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/vmcheck/test-basic.sh b/tests/vmcheck/test-basic.sh index 8ff91b9a85..fa410ed441 100755 --- a/tests/vmcheck/test-basic.sh +++ b/tests/vmcheck/test-basic.sh @@ -159,8 +159,9 @@ echo "ok script output prefixed in journal" # local repos are always cached, so let's start up an http server for the same # vmcheck repo start_http_repo() { - vm_cmd systemd-run --unit vmcheck-httpd --property WorkingDirectory=/tmp \ - python -m SimpleHTTPServer 8888 + # CentOS systemd is too old for -p WorkingDirectory + vm_cmd systemd-run --unit vmcheck-httpd sh -c \ + 'cd /tmp && python -m SimpleHTTPServer 8888' cat > vmcheck-http.repo << EOF [vmcheck-http] name=vmcheck-http