Skip to content

Commit

Permalink
Minor chages in mage.go
Browse files Browse the repository at this point in the history
Signed-off-by: keliramu <[email protected]>
  • Loading branch information
keliramu committed Jul 22, 2024
1 parent f4bb308 commit e80a3e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion magefiles/mage.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"os/exec"
"path/filepath"
"strings"
"time"

"github.com/NordSecurity/nordvpn-linux/internal"

Expand All @@ -23,7 +24,7 @@ const (
imageSnapPackager = registryPrefix + "snaper:0.0.2"
imageProtobufGenerator = registryPrefix + "generator:1.1.0"
imageScanner = registryPrefix + "scanner:1.1.0"
imageTester = registryPrefix + "tester:1.1.10"
imageTester = registryPrefix + "tester:1.2.0"
imageQAPeer = registryPrefix + "qa-peer:1.0.4"
imageRuster = registryPrefix + "ruster:1.1.0"

Expand Down Expand Up @@ -607,6 +608,7 @@ func qaDocker(ctx context.Context, testGroup, testPattern string) (err error) {
} else {
fmt.Println(err)
}
time.Sleep(3 * time.Second)
err = RemoveDockerNetwork(context.Background(), networkID)
if err != nil {
fmt.Println(err)
Expand Down
2 changes: 1 addition & 1 deletion test/qa/lib/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
def _rewrite_log_path():
project_root = os.environ["WORKDIR"].replace("/", "\\/")
pattern = f"s/^LOGFILE=.*/LOGFILE={project_root}\\/dist\\/logs\\/daemon.log/"
# this fn is executed only in docker (below line would not work under snap)
sh.sudo.sed("-i", pattern, "/etc/init.d/nordvpn")
#os.popen(f"sudo sed -i {pattern} /etc/init.d/nordvpn").read()


# returns True on SystemD distros
Expand Down

0 comments on commit e80a3e2

Please sign in to comment.