File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
+ import os
3
4
import time
4
5
import uuid
5
6
from typing import TYPE_CHECKING
@@ -263,6 +264,10 @@ def test_run_memory_limit(profile: Profile) -> None:
263
264
assert result ["exit_code" ] not in [None , 0 ]
264
265
265
266
267
+ @pytest .mark .skipif (
268
+ os .getenv ("GITHUB_ACTIONS" ) == "true" ,
269
+ reason = "Test doesn't work in Github Actions." ,
270
+ )
266
271
def test_run_file_size_limit (profile : Profile ) -> None :
267
272
limits = {"file_size" : 10 }
268
273
@@ -283,6 +288,10 @@ def test_run_read_only_file_system(profile_read_only: Profile) -> None:
283
288
assert b"Read-only file system" in result ["stderr" ]
284
289
285
290
291
+ @pytest .mark .skipif (
292
+ os .getenv ("GITHUB_ACTIONS" ) == "true" ,
293
+ reason = "Test doesn't work in Github Actions." ,
294
+ )
286
295
def test_fork_exceed_processes_limit (profile : Profile ) -> None :
287
296
result = run (
288
297
profile .name ,
@@ -323,6 +332,10 @@ def test_run_network_disabled(profile: Profile) -> None:
323
332
assert b"unable to resolve host address" in result ["stderr" ]
324
333
325
334
335
+ @pytest .mark .skipif (
336
+ os .getenv ("GITHUB_ACTIONS" ) == "true" ,
337
+ reason = "Test doesn't work in Github Actions." ,
338
+ )
326
339
def test_run_network_enabled (profile : Profile ) -> None :
327
340
profile .network_disabled = False
328
341
You can’t perform that action at this time.
0 commit comments