Skip to content

Commit 5ac3597

Browse files
committed
make tests/first_run.v more verbose and robust
1 parent b4e50d4 commit 5ac3597

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/first_run.v

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import log
23
import net.http
34
import time
45
import json
@@ -73,7 +74,7 @@ fn after() ! {
7374
}
7475

7576
fn run_gitly() {
76-
gitly_process := os.execute('./gitly &')
77+
gitly_process := os.execute('./gitly.exe &')
7778
if gitly_process.exit_code != 0 {
7879
exit_with_message(gitly_process.str())
7980
}
@@ -86,7 +87,7 @@ fn exit_with_message(message string) {
8687
}
8788

8889
fn ilog(message string) {
89-
println('${time.now().format_ss_milli()} | ${message}')
90+
log.info(message)
9091
}
9192

9293
fn cd_executable_dir() ! {
@@ -98,7 +99,7 @@ fn cd_executable_dir() ! {
9899
}
99100

100101
fn kill_gitly_processes() {
101-
os.execute('pkill -9 gitly')
102+
os.execute('pkill -9 gitly.exe')
102103
}
103104

104105
fn remove_database_if_exists() ! {
@@ -119,8 +120,8 @@ fn remove_repos_dir_if_exists() ! {
119120

120121
fn compile_gitly() {
121122
ilog('Compile gitly')
122-
123-
os.execute('v .')
123+
os.execute('v -o gitly.exe .')
124+
ilog('Compiled gitly.exe, size: ${os.file_size('gitly.exe')}')
124125
}
125126

126127
fn wait_gitly() {

0 commit comments

Comments
 (0)