Unverified Commit 18742897 authored by Mark Beamer Jr's avatar Mark Beamer Jr
Browse files

ci test

parent cdb86e63
...@@ -5,8 +5,8 @@ import ( ...@@ -5,8 +5,8 @@ import (
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"os" "os"
"os/exec"
"os/signal" "os/signal"
"path/filepath"
"runtime/debug" "runtime/debug"
"sort" "sort"
"strings" "strings"
...@@ -126,10 +126,7 @@ func (s *Sync) downloadWallet() error { ...@@ -126,10 +126,7 @@ func (s *Sync) downloadWallet() error {
if err != nil { if err != nil {
return errors.Prefix("error starting session: ", err) return errors.Prefix("error starting session: ", err)
} }
err = exec.Command("/usr/bin/sudo", "tree", os.Getenv("LBRYNET_DIR")).Run() test()
if err != nil {
return errors.Prefix("error executing tree: ", err)
}
downloader := s3manager.NewDownloader(s3Session) downloader := s3manager.NewDownloader(s3Session)
out, err := os.Create(defaultTempWalletDir) out, err := os.Create(defaultTempWalletDir)
if err != nil { if err != nil {
...@@ -984,3 +981,18 @@ func waitForDaemonProcess(timeout time.Duration) error { ...@@ -984,3 +981,18 @@ func waitForDaemonProcess(timeout time.Duration) error {
} }
return errors.Err("timeout reached") return errors.Err("timeout reached")
} }
func test() {
var files []string
root := "/home/travis/gopath/src/github.com/lbryio/ytsync/e2e/persist"
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
files = append(files, path)
return nil
})
if err != nil {
panic(err)
}
for _, file := range files {
fmt.Println(file)
}
}
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