File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ def log(message):
20
20
try :
21
21
import robot
22
22
from robot .libdocpkg import LibraryDocumentation
23
+ from robot .conf import RobotSettings
23
24
except ImportError :
24
25
robot = None
25
26
@@ -32,6 +33,7 @@ def log(message):
32
33
time .sleep (1 )
33
34
import robot
34
35
from robot .libdocpkg import LibraryDocumentation
36
+ from robot .conf import RobotSettings
35
37
log (f" = version { robot .__version__ } \n " )
36
38
except Exception as e :
37
39
js .console .log (f"Installation Exception: { e } " )
@@ -111,6 +113,8 @@ def write_file(file):
111
113
js .console .log (f"Files in working dir: { os .listdir ('.' )} " )
112
114
result = - 2
113
115
116
+ console_links_enabled = "ConsoleLinks" in RobotSettings ._cli_opts
117
+
114
118
try :
115
119
if test_case_name :
116
120
kwargs = {"test" : test_case_name }
@@ -122,9 +126,11 @@ def write_file(file):
122
126
if robot_arguments :
123
127
log (f"Robot Run Arguments: { robot_args } \n " )
124
128
log (f"\n Running Robot Framework:\n " )
129
+ robot_arguments ["consolelinks" ] = 'off'
125
130
else :
126
131
log (f"> robot --loglevel TRACE:INFO --exclude EXCL --skip SKIP\n "
127
132
f" --removekeywords tag:REMOVE --flattenkeywords tag:FLAT{ testcli } .\n " )
133
+ kwargs ["consolelinks" ] = 'off'
128
134
129
135
org_stdout = sys .__stdout__
130
136
org_stderr = sys .__stderr__
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ const getProjectFromLiveDir = async(projectDir) => {
29
29
30
30
const getProject = async ( projectUrl ) => {
31
31
console . log ( `Loading data from ${ projectUrl } ` )
32
- const configFile = await fetch ( `${ projectUrl } /config.json?token=${ Date . now ( ) } ` )
32
+ // const configFile = await fetch(`${projectUrl}/config.json?token=${Date.now()}`)
33
+ const configFile = await fetch ( `${ projectUrl } /config.json` )
33
34
. then ( response => response . json ( ) )
34
35
const project = { name : configFile . name , files : [ ] , description : '' }
35
36
if ( configFile . robotVersion ) {
@@ -48,7 +49,8 @@ const getProject = async(projectUrl) => {
48
49
}
49
50
for ( const file of configFile . files ) {
50
51
const { fileName, hidden } = file
51
- const content = await fetch ( `${ projectUrl } /${ fileName } ?token=${ Date . now ( ) } ` )
52
+ // const content = await fetch(`${projectUrl}/${fileName}?token=${Date.now()}`)
53
+ const content = await fetch ( `${ projectUrl } /${ fileName } ` )
52
54
. then ( response => response . text ( ) )
53
55
project . files . push ( {
54
56
fileName,
You can’t perform that action at this time.
0 commit comments