File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
+ import log
2
3
import net.http
3
4
import time
4
5
import json
@@ -73,7 +74,7 @@ fn after() ! {
73
74
}
74
75
75
76
fn run_gitly () {
76
- gitly_process := os.execute ('./gitly &' )
77
+ gitly_process := os.execute ('./gitly.exe &' )
77
78
if gitly_process.exit_code != 0 {
78
79
exit_with_message (gitly_process.str ())
79
80
}
@@ -86,7 +87,7 @@ fn exit_with_message(message string) {
86
87
}
87
88
88
89
fn ilog (message string ) {
89
- println ( ' ${time.now().format_ss_milli()} | ${ message} ' )
90
+ log. info ( message)
90
91
}
91
92
92
93
fn cd_executable_dir () ! {
@@ -98,7 +99,7 @@ fn cd_executable_dir() ! {
98
99
}
99
100
100
101
fn kill_gitly_processes () {
101
- os.execute ('pkill -9 gitly' )
102
+ os.execute ('pkill -9 gitly.exe ' )
102
103
}
103
104
104
105
fn remove_database_if_exists () ! {
@@ -119,8 +120,8 @@ fn remove_repos_dir_if_exists() ! {
119
120
120
121
fn compile_gitly () {
121
122
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')} ' )
124
125
}
125
126
126
127
fn wait_gitly () {
You can’t perform that action at this time.
0 commit comments