C内核流量计算方法优化,前端文件名称读取优化
This commit is contained in:
1 parent
5d5a2e1843
commit
808c484f5b
94 files changed
+20163
-4418
No files matched your search
@@ -22,7 +22,7 @@ from app.simulation.config import SolverActivityTracker
|
||||
from app.system_xml import validate_system_xml_document
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
FIXTURE = ROOT / "tests/data/native-skill-test.xml"
|
||||
FIXTURE = ROOT / "tests/fixtures/native-skill-test.xml"
|
||||
|
||||
|
||||
def network(xml=None):
|
||||
@@ -76,7 +76,8 @@ class NativeExecutionTests(unittest.TestCase):
|
||||
def test_cache_and_standalone_executable_without_python_path(self):
|
||||
cached = build_native(self.program)
|
||||
self.assertTrue(cached.cache_hit)
|
||||
env = {**os.environ, "PATH": str(Path(os.environ["SystemRoot"]) / "System32")}
|
||||
isolated_path = str(Path(os.environ["SystemRoot"]) / "System32") if os.name == "nt" else str(self.root / "no-path")
|
||||
env = {**os.environ, "PATH": isolated_path}
|
||||
r = subprocess.run([str(cached.executable), "--init"], env=env, cwd=self.root,
|
||||
capture_output=True, text=True, check=True)
|
||||
self.assertEqual(len(json.loads(r.stdout)), 12)
|
||||
|
||||
Reference in new issue
Block a user