P28-01-COLLECTOR: 現HEADの性能基準:windowed x1/x3・Operations ON collector
This commit is contained in:
+4
-3
@@ -11,6 +11,7 @@ import tempfile
|
|||||||
import time
|
import time
|
||||||
from types import SimpleNamespace
|
from types import SimpleNamespace
|
||||||
import unittest
|
import unittest
|
||||||
|
import uuid
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
sys.dont_write_bytecode = True
|
sys.dont_write_bytecode = True
|
||||||
@@ -755,7 +756,7 @@ class ReportTests(unittest.TestCase):
|
|||||||
"--headless", "--path", str(stage), "--check-only", "--script", "probe"]
|
"--headless", "--path", str(stage), "--check-only", "--script", "probe"]
|
||||||
row = collector.run_private_engine(
|
row = collector.run_private_engine(
|
||||||
standard, SimpleNamespace(run_phase=owned), command, base / label, {},
|
standard, SimpleNamespace(run_phase=owned), command, base / label, {},
|
||||||
stage, public, "TheTree-PCK-tests-" + base.name + "-" + label)
|
stage, public, "TheTree-PCK-tests-" + uuid.uuid4().hex + "-p28-" + label)
|
||||||
row.update(phase=label, parse_na=copy.deepcopy(collector.PARSE_NA),
|
row.update(phase=label, parse_na=copy.deepcopy(collector.PARSE_NA),
|
||||||
source_preserved=True, player_preserved=True, script_pins=pins,
|
source_preserved=True, player_preserved=True, script_pins=pins,
|
||||||
stage_before_sha256=collector.digest(source),
|
stage_before_sha256=collector.digest(source),
|
||||||
@@ -842,9 +843,9 @@ class ReportTests(unittest.TestCase):
|
|||||||
public = b'[application]\n\nconfig/name="The Tree"\n'
|
public = b'[application]\n\nconfig/name="The Tree"\n'
|
||||||
(base / "project.godot").write_bytes(public)
|
(base / "project.godot").write_bytes(public)
|
||||||
with patch.object(collector, "run_engine", side_effect=RuntimeError("owned failure")), \
|
with patch.object(collector, "run_engine", side_effect=RuntimeError("owned failure")), \
|
||||||
self.assertRaises(RuntimeError):
|
self.assertRaisesRegex(RuntimeError, "owned failure"):
|
||||||
collector.run_private_engine(standard, None, [], base / "parse-base", {}, base,
|
collector.run_private_engine(standard, None, [], base / "parse-base", {}, base,
|
||||||
public, "TheTree-PCK-tests-" + base.name)
|
public, "TheTree-PCK-tests-" + uuid.uuid4().hex + "-p28-parse-base")
|
||||||
self.assertEqual((base / "project.godot").read_bytes(), public)
|
self.assertEqual((base / "project.godot").read_bytes(), public)
|
||||||
|
|
||||||
def test_j3_guard_and_whole_inventory(self):
|
def test_j3_guard_and_whole_inventory(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user