Skip to content

Commit

Permalink
fix bug for APKBUILD.
Browse files Browse the repository at this point in the history
refine test for 0.7.3.
  • Loading branch information
ericwq committed Jun 17, 2024
1 parent 0cff3af commit 28e2431
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build/APKBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contributor: Wang Qi <[email protected]>
# Maintainer: Wang Qi <[email protected]>
pkgname=aprilsh
pkgver=0.7.2
pkgver=0.7.3
pkgrel=0
pkgdesc="Remote shell support intermittent or mobile network"
url="https://github.com/ericwq/aprilsh"
Expand All @@ -15,7 +15,7 @@ subpackages="
$pkgname-server-openrc:server_openrc
$pkgname-doc
"
source="https://github.com/ericwq/aprilsh/archive/refs/tags/$pkgver.tar.gz
source="$pkgname-$pkgver.tar.gz::https://github.com/ericwq/aprilsh/archive/refs/tags/$pkgver.tar.gz
apshd.logrotate
apshd.initd"

Expand Down
8 changes: 7 additions & 1 deletion frontend/client/client_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"io"
"os"
"path/filepath"
"strings"
"testing"

Expand All @@ -20,10 +21,15 @@ func TestMainRun_Parameters2(t *testing.T) {
"only password auth, no ssh agent, no public key file",
[]string{frontend.CommandClientName, "-vv", "ide@localhost"},
"xterm-256color",
[]string{"prepareAuthMethod ssh auth password", "password:", "inappropriate ioctl for device"},
[]string{"prepareAuthMethod ssh auth password", // "password:", "inappropriate ioctl for device"},
"/.ssh/known_hosts: no such file or directory"},
},
}

khPath := filepath.Join(os.Getenv("HOME"), ".ssh")
if _, err := os.Stat(khPath); err != nil {
t.Skip("no ~/.ssh exist!, skip this test")
}
for _, v := range tc {
t.Run(v.label, func(t *testing.T) {
// intercept stdout
Expand Down

0 comments on commit 28e2431

Please sign in to comment.