To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit bb08afa1 authored by Christof Gerber's avatar Christof Gerber
Browse files

gitlab-ci: Try to execute youtube-dl without command

parent fcce2e07
Pipeline #35018 failed with stages
in 2 minutes and 18 seconds
...@@ -2,8 +2,8 @@ package youtubedl ...@@ -2,8 +2,8 @@ package youtubedl
import ( import (
"fmt" "fmt"
log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"log"
"os" "os"
"os/exec" "os/exec"
"path/filepath" "path/filepath"
...@@ -12,10 +12,15 @@ import ( ...@@ -12,10 +12,15 @@ import (
func TestMain(m *testing.M) { func TestMain(m *testing.M) {
// Make sure youtube-dl binary exists // Make sure youtube-dl binary exists
_, err := exec.LookPath("youtube-dl") path, err := exec.LookPath("youtube-dl")
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
log.Warn(path)
cmd := exec.Command(path, "--version")
out, err := cmd.Output()
log.Warn(string(out))
log.Warn(err)
os.Exit(m.Run()) os.Exit(m.Run())
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment