Skip to content

Commit

Permalink
fix: check mount
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Nov 23, 2022
1 parent e30a635 commit 16a5c68
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions cmd/afc/afcInit.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package afc

import (
"fmt"
giDevice "github.com/SonicCloudOrg/sonic-gidevice"
"github.com/SonicCloudOrg/sonic-ios-bridge/src/util"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -57,15 +56,15 @@ func getAFCServer() (afcServer giDevice.Afc) {
var houseArrestSrv giDevice.HouseArrest
houseArrestSrv, err = device.HouseArrestService()
if err != nil {
fmt.Println(err)
util.NewErrorPrint(util.ErrSendCommand, "house arrest", err)
os.Exit(0)
}
afcServer, err = houseArrestSrv.Documents(bundleId)
} else {
afcServer, err = device.AfcService()
}
if err != nil {
fmt.Println(err)
util.NewErrorPrint(util.ErrSendCommand, "afc", err)
os.Exit(0)
}
return afcServer
Expand Down
1 change: 0 additions & 1 deletion cmd/run/wda.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ var wdaCmd = &cobra.Command{
testEnv := make(map[string]interface{})
testEnv["USE_PORT"] = serverRemotePort
testEnv["MJPEG_SERVER_PORT"] = mjpegRemotePort
util.CheckMount(device)
output, stopTest, err2 := device.XCTest(wdaBundleID, giDevice.WithXCTestEnv(testEnv))
if err2 != nil {
fmt.Printf("WebDriverAgent server start failed: %s", err2)
Expand Down
1 change: 0 additions & 1 deletion cmd/run/xctest.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ var xctestCmd = &cobra.Command{
log.Println("Read env:", testEnv)
}

util.CheckMount(device)
output, stopTest, err2 := device.XCTest(xcTestBundleID, giDevice.WithXCTestEnv(testEnv))
if err2 != nil {
fmt.Printf("xctest start failed: %s", err2)
Expand Down

0 comments on commit 16a5c68

Please sign in to comment.