Skip to content

Commit 02f9221

Browse files
committed
try to only look at log once
1 parent 326209f commit 02f9221

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

atest/03_Notebook.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
*** Settings ***
22
Suite Setup Setup Suite For Screenshots notebook
3-
Test Setup Run Keywords Capture Lab Log Before Test Try to Close All Tabs
3+
Test Setup Try to Close All Tabs
44
Resource Keywords.robot
55

66
*** Test Cases ***

atest/04_Interface/DiagnosticsPanel.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
*** Settings ***
22
Suite Setup Setup Suite For Screenshots diagnostics_panel
33
Resource ../Keywords.robot
4-
Test Setup Run Keywords Capture Lab Log Before Test Gently Reset Workspace
4+
Test Setup Gently Reset Workspace
55

66
*** Variables ***
77
${EXPECTED_COUNT} 1

atest/05_Features/Completion.robot

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ Triggers Completer On Dot
9393

9494
*** Keywords ***
9595
Setup Completion Test
96-
Capture Lab Log Before Test
9796
Setup Notebook Python Completion.ipynb
9897

9998
Get Cell Editor Content

atest/Keywords.robot

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Setup Server and Browser
2323
${cmd} = Create Lab Launch Command ${root}
2424
Set Screenshot Directory ${OUTPUT DIR}${/}screenshots
2525
Set Global Variable ${LAB LOG} ${OUTPUT DIR}${/}lab.log
26-
Set Global Variable ${PREVIOUS LAB LOG TEXT} ${EMPTY}
26+
Set Global Variable ${PREVIOUS LAB LOG LENGTH} 0
2727
${server} = Start Process ${cmd} shell=yes env:HOME=${home} cwd=${home} stdout=${LAB LOG}
2828
... stderr=STDOUT
2929
Set Global Variable ${SERVER} ${server}
@@ -67,14 +67,11 @@ Tear Down Everything
6767
Terminate All Processes
6868
Terminate All Processes kill=${True}
6969

70-
Capture Lab Log Before Test
70+
Lab Log Should Not Contain Known Error Messages
7171
${log} = Get File ${LAB LOG}
72+
${test log} = Set Variable ${log[${PREVIOUS LAB LOG LENGTH}:]}
7273
${length} = Get Length ${log}
7374
Set Global Variable ${PREVIOUS LAB LOG LENGTH} ${length}
74-
75-
Lab Log Should Not Contain Known Error Messages
76-
${log} = Get File ${LAB LOG}
77-
${test log} = Set Variable ${log[:${PREVIOUS LAB LOG LENGTH}]}
7875
Should Not Contain Any ${test log} @{KNOWN BAD ERRORS} msg=${test log}
7976

8077
Wait For Splash

atest/__init__.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
*** Settings ***
22
Suite Setup Setup Server and Browser
33
Suite Teardown Tear Down Everything
4-
Test Setup Run Keywords Capture Lab Log Before Test Reset Application State
4+
Test Setup Reset Application State
55
Test Teardown Lab Log Should Not Contain Known Error Messages
66
Force Tags os:${OS.lower()} py:${PY}
77
Resource Keywords.robot

0 commit comments

Comments
 (0)