Skip to content

Commit c4e4918

Browse files
committed
test: add missing scene to build script, fix windows chrome path
1 parent 0849193 commit c4e4918

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

sample/Assets/Scenes/SetCallTimeout.unity

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,8 @@ MonoBehaviour:
557557
m_TargetGraphic: {fileID: 66309839}
558558
m_HandleRect: {fileID: 66309838}
559559
m_Direction: 0
560-
m_Value: 0
561-
m_Size: 1
560+
m_Value: 1
561+
m_Size: 0.9999999
562562
m_NumberOfSteps: 0
563563
m_OnValueChanged:
564564
m_PersistentCalls:
@@ -739,8 +739,8 @@ RectTransform:
739739
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
740740
m_AnchorMin: {x: 0, y: 0}
741741
m_AnchorMax: {x: 0, y: 0}
742-
m_AnchoredPosition: {x: 1015.1455, y: 0}
743-
m_SizeDelta: {x: 2030.291, y: 0}
742+
m_AnchoredPosition: {x: 1141.847, y: 0}
743+
m_SizeDelta: {x: 2283.694, y: 0}
744744
m_Pivot: {x: 0.5, y: 0.5}
745745
--- !u!114 &410008536
746746
MonoBehaviour:
@@ -966,8 +966,8 @@ MonoBehaviour:
966966
m_OnClick:
967967
m_PersistentCalls:
968968
m_Calls:
969-
- m_Target: {fileID: 0}
970-
m_TargetAssemblyTypeName: ZkEvmGetBalance, Assembly-CSharp
969+
- m_Target: {fileID: 1192763474}
970+
m_TargetAssemblyTypeName: SetCallTimeoutScript, Assembly-CSharp
971971
m_MethodName: Cancel
972972
m_Mode: 1
973973
m_Arguments:
@@ -1052,8 +1052,8 @@ RectTransform:
10521052
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
10531053
m_AnchorMin: {x: 0, y: 0}
10541054
m_AnchorMax: {x: 0, y: 0}
1055-
m_AnchoredPosition: {x: 1015.1455, y: 0}
1056-
m_SizeDelta: {x: 2030.291, y: 0}
1055+
m_AnchoredPosition: {x: 1141.847, y: 0}
1056+
m_SizeDelta: {x: 2283.694, y: 0}
10571057
m_Pivot: {x: 0.5, y: 0.5}
10581058
--- !u!114 &783923066
10591059
MonoBehaviour:
@@ -1195,7 +1195,7 @@ MonoBehaviour:
11951195
m_TargetGraphic: {fileID: 1741513414}
11961196
m_HandleRect: {fileID: 1741513413}
11971197
m_Direction: 2
1198-
m_Value: 0
1198+
m_Value: 1
11991199
m_Size: 1
12001200
m_NumberOfSteps: 0
12011201
m_OnValueChanged:

sample/Tests/test_windows.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ function Run-Pytest {
3030
[string]$testFile
3131
)
3232
Write-Output "Running pytest for $testFile..."
33-
Start-Process -FilePath "pytest" -ArgumentList $testFile -NoNewWindow -PassThru | Wait-Process
33+
$process = Start-Process -FilePath "pytest" -ArgumentList "-x", $testFile -NoNewWindow -PassThru -Wait
34+
if ($process.ExitCode -ne 0) {
35+
Write-Output "Test failed for $testFile. Stopping execution."
36+
exit $process.ExitCode
37+
}
3438
}
3539

3640
# Function to stop Chrome if it's running
@@ -105,7 +109,7 @@ function Logout {
105109
Write-Output "Chrome executable not found."
106110
exit
107111
}
108-
112+
109113
Start-Process -FilePath $chromePath -ArgumentList "--remote-debugging-port=9222"
110114

111115
Write-Output "Running python script to logout..."

0 commit comments

Comments
 (0)