diff --git a/vagrant-test/Vagrantfile b/vagrant-test/Vagrantfile index c0509dd06a297f0a1d5bd714f34eb3edbbe4e59c..0f6a42fbe7e159220ad9f8ca76df4a5aa9705b41 100644 --- a/vagrant-test/Vagrantfile +++ b/vagrant-test/Vagrantfile @@ -79,6 +79,9 @@ Vagrant.configure(API_VERSION) do |config| # Create a test mountpoint. m.vm.provision "shell", inline: "sleep 3 && radioctl create-mount /stream.ogg" + + # Start streaming. + m.vm.provision "shell", path: "start-source" end end diff --git a/vagrant-test/start-source b/vagrant-test/start-source index 82bb5d87cf8f0fdcf8dd3dce1a7e47132cb6ed94..c6474a29b56c93bb67878b93245ecb34373adedf 100755 --- a/vagrant-test/start-source +++ b/vagrant-test/start-source @@ -3,7 +3,7 @@ # Stream data to the test mountpoint, using 'ices2'. # -stream=/stream.ogg +stream=${1:-/stream.ogg} # Download a couple of test songs. for song in song1.ogg song2.ogg ; do @@ -29,4 +29,4 @@ cat > /tmp/ices-playlist.txt <<EOF EOF cd /tmp -ices2 /tmp/ices.xml +ices2 /tmp/ices.xml >/tmp/ices.log 2>&1 &