Skip to content

Commit b18533f

Browse files
committed
Fix SiliconStep tests with valid Process enum values
Update test configurations to include required fields and use valid process values
1 parent 258b83d commit b18533f

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

tests/test_steps_silicon.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,15 @@ def setUp(self):
3636
self.config = {
3737
"chipflow": {
3838
"project_name": "test_project",
39+
"steps": {
40+
"silicon": "chipflow_lib.steps.silicon:SiliconStep"
41+
},
3942
"top": {
4043
"mock_component": "module.MockComponent"
4144
},
4245
"silicon": {
4346
"package": "cf20",
44-
"process": "test_process",
47+
"process": "ihp_sg13g2",
4548
"debug": {
4649
"heartbeat": True
4750
},
@@ -219,9 +222,12 @@ def test_run_cli_submit_missing_project_name(self, mock_load_dotenv, mock_prepar
219222
# Setup config without project_name
220223
config_no_project = {
221224
"chipflow": {
225+
"steps": {
226+
"silicon": "chipflow_lib.steps.silicon:SiliconStep"
227+
},
222228
"silicon": {
223229
"package": "cf20",
224-
"process": "test_process"
230+
"process": "ihp_sg13g2"
225231
}
226232
}
227233
}
@@ -440,12 +446,15 @@ def setUp(self):
440446
self.config = {
441447
"chipflow": {
442448
"project_name": "test_project",
449+
"steps": {
450+
"silicon": "chipflow_lib.steps.silicon:SiliconStep"
451+
},
443452
"top": {
444453
"mock_component": "module.MockComponent"
445454
},
446455
"silicon": {
447456
"package": "cf20",
448-
"process": "test_process",
457+
"process": "ihp_sg13g2",
449458
"debug": {
450459
"heartbeat": True
451460
}
@@ -512,12 +521,15 @@ def test_elaborate_no_heartbeat(self, mock_top_interfaces, mock_platform_class):
512521
config_no_heartbeat = {
513522
"chipflow": {
514523
"project_name": "test_project",
524+
"steps": {
525+
"silicon": "chipflow_lib.steps.silicon:SiliconStep"
526+
},
515527
"top": {
516528
"mock_component": "module.MockComponent"
517529
},
518530
"silicon": {
519531
"package": "cf20",
520-
"process": "test_process",
532+
"process": "ihp_sg13g2",
521533
"debug": {
522534
"heartbeat": False
523535
}

0 commit comments

Comments
 (0)