prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML
files to have consistent formatting for these file types. Re-run the
formatter on the whole repository.
Change-Id: Ie200c0d0da7926b8e0dae0b44c5618762f7fd666
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/data/applytime_table.json b/data/applytime_table.json
index 2bd0353..374d2f2 100644
--- a/data/applytime_table.json
+++ b/data/applytime_table.json
@@ -16,4 +16,3 @@
"Immediate": "Wait State os_running_match_state 10 mins"
}
}
-
diff --git a/data/oem/nuvoton/olympus.json b/data/oem/nuvoton/olympus.json
index 7c9de53..b2ecdf0 100644
--- a/data/oem/nuvoton/olympus.json
+++ b/data/oem/nuvoton/olympus.json
@@ -1,15 +1,14 @@
{
"npcm7xx": {
- "cpld" : {
- "fw1" : "2A01.svf",
- "fw1ver" : "00 00 2a 01",
- "fw2" : "2A02.svf",
- "fw2ver" : "00 00 2a 02",
- "readid" : "readid.svf",
- "readusercode" : "read_usercode.svf"
+ "cpld": {
+ "fw1": "2A01.svf",
+ "fw1ver": "00 00 2a 01",
+ "fw2": "2A02.svf",
+ "fw2ver": "00 00 2a 02",
+ "readid": "readid.svf",
+ "readusercode": "read_usercode.svf"
},
- "jtag_dev" : "/dev/jtag0",
- "power_cycle_cmd" : "/usr/sbin/i2cset -f -y 8 0x11 0xd9"
+ "jtag_dev": "/dev/jtag0",
+ "power_cycle_cmd": "/usr/sbin/i2cset -f -y 8 0x11 0xd9"
}
}
-
diff --git a/data/resource_lock_table.json b/data/resource_lock_table.json
index 771c3fe..735ab00 100644
--- a/data/resource_lock_table.json
+++ b/data/resource_lock_table.json
@@ -2,451 +2,599 @@
"Valid Case": {
"ResourceID": 234,
"ReadCase1": {
- "Read": [{
- "LockFlag": "LockAll",
- "SegmentLength": 2
- }, {
- "LockFlag": "DontLock",
- "SegmentLength": 1
- }]
+ "Read": [
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 2
+ },
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 1
+ }
+ ]
},
"ReadCase2": {
- "Read": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
+ "Read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
},
"ReadCase3": {
- "Read": [{
- "LockFlag": "DontLock",
- "SegmentLength": 4
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 3
- }]
+ "Read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 4
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 3
+ }
+ ]
},
"ReadCase4": {
- "Read": [{
- "LockFlag": "DontLock",
- "SegmentLength": 2
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 1
- }]
+ "Read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 2
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 1
+ }
+ ]
},
"ReadCase5": {
- "Read": [{
- "LockFlag": "DontLock",
- "SegmentLength": 2
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
+ "Read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 2
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
},
"ReadCase6": {
- "Read": [{
- "LockFlag": "LockSame",
- "SegmentLength": 2
- }, {
- "LockFlag": "DontLock",
- "SegmentLength": 1
- }]
+ "Read": [
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 2
+ },
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 1
+ }
+ ]
},
"ReadCase7": {
- "Read": [{
- "LockFlag": "LockAll",
- "SegmentLength": 2
- }, {
- "LockFlag": "DontLock",
- "SegmentLength": 1
- }]
+ "Read": [
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 2
+ },
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 1
+ }
+ ]
},
"WriteCase1": {
- "Write": [{
- "LockFlag": "LockAll",
- "SegmentLength": 2
- }, {
- "LockFlag": "DontLock",
- "SegmentLength": 1
- }]
+ "Write": [
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 2
+ },
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 1
+ }
+ ]
},
"WriteCase2": {
- "Write": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
+ "Write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
},
"WriteCase3": {
- "Write": [{
- "LockFlag": "DontLock",
- "SegmentLength": 4
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 3
- }]
- },
- "WriteCase4": {
- "Write": [{
- "LockFlag": "DontLock",
- "SegmentLength": 2
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
- },
- "WriteCase5": {
- "Write": [{
- "LockFlag": "DontLock",
- "SegmentLength": 2
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 1
- }]
- },
- "WriteCase6": {
- "Write": [{
- "LockFlag": "LockAll",
- "SegmentLength": 2
- }, {
- "LockFlag": "DontLock",
- "SegmentLength": 1
- }]
- },
- "WriteCase7": {
- "Write": [{
- "LockFlag": "LockSame",
- "SegmentLength": 2
- }, {
- "LockFlag": "DontLock",
- "SegmentLength": 1
- }]
- }
+ "Write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 4
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 3
+ }
+ ]
+ },
+ "WriteCase4": {
+ "Write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 2
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase5": {
+ "Write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 2
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase6": {
+ "Write": [
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 2
+ },
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase7": {
+ "Write": [
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 2
+ },
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 1
+ }
+ ]
+ }
},
"Invalid Case": {
"ResourceIDInvalidDataType": "234",
"ReadCase1": {
- "read": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 1
- }]
+ "read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 1
+ }
+ ]
},
"ReadCase2": {
- "READ": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 1
- }]
+ "READ": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 1
+ }
+ ]
},
"ReadCase3": {
- "Red": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 1
- }]
+ "Red": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 1
+ }
+ ]
},
"ReadCase4": {
- "*Read": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 1
- }]
+ "*Read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 1
+ }
+ ]
},
"ReadCase5": {
- "ReaD": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 1
- }]
- },
- "ReadCase6": {
- "Read": [{
- "LockFlag": "lockall",
- "SegmentLength": 1
- }]
- },
- "ReadCase7": {
- "Read": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "locksame",
- "SegmentLength": 1
- }]
- },
- "ReadCase8": {
- "Read": [{
- "LockFlag": "dontlock",
- "SegmentLength": 3
- }, {
- "LockFlag": "locksame",
- "SegmentLength": 1
- }]
- },
- "ReadCase9": {
- "Read": [{
- "LockFlag": "ontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
- },
- "ReadCase10": {
- "Read": [{
- "LockFlag": "*DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
- },
- "ReadCase11": {
- "Read": [{
- "LockFlag": "dontlock",
- "SegmentLength": 3
- }, {
- "LockFlag": "lockall",
- "SegmentLength": 1
- }]
- },
- "ReadCase12": {
- "Read": [{
- "LockFlag": "DontLock",
- "SegmentLength": 7
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 0
- }]
- },
- "ReadCase13": {
- "Read": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 0
- }]
- },
- "ReadCase14": {
- "Read": [{
- "LockFlag": "DontLock",
- "SegmentLength": 7
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
- },
- "ReadCase15": {
- "Read": [{
- "LockFlag": "DontLock",
- "SegmentLength": "3"
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
- },
- "ReadCase16": {
- "Read": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": "1"
- }]
- },
- "ReadCase17": {
- "Read": [{
- "LockFlag": "DontLock",
- "SegmentLength": "Three"
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
- },
- "ReadCase18": {
- "Read": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": "One"
- }]
- },
- "WriteCase1": {
- "write": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 1
- }]
- },
- "WriteCase2": {
- "WRITE": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 1
- }]
- },
- "WriteCase3": {
- "*Write": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 1
- }]
- },
- "WriteCase4": {
- "Wrte": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 1
- }]
- },
- "WriteCase5": {
- "WritE": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockSame",
- "SegmentLength": 1
- }]
- },
- "WriteCase6": {
- "Write": [{
- "LockFlag": "lockall",
- "SegmentLength": 1
- }]
- },
- "WriteCase7": {
- "Write": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "locksame",
- "SegmentLength": 1
- }]
- },
- "WriteCase8": {
- "Write": [{
- "LockFlag": "dontlock",
- "SegmentLength": 3
- }, {
- "LockFlag": "locksame",
- "SegmentLength": 1
- }]
- },
- "WriteCase9": {
- "Write": [{
- "LockFlag": "ontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
- },
- "WriteCase10": {
- "Write": [{
- "LockFlag": "*DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
- },
- "WriteCase11": {
- "Write": [{
- "LockFlag": "dontlock",
- "SegmentLength": 3
- }, {
- "LockFlag": "lockall",
- "SegmentLength": 1
- }]
- },
- "WriteCase12": {
- "Write": [{
- "LockFlag": "DontLock",
- "SegmentLength": 7
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 0
- }]
- },
- "WriteCase13": {
- "Write": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 0
- }]
- },
- "WriteCase14": {
- "Write": [{
- "LockFlag": "DontLock",
- "SegmentLength": 7
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
- },
- "WriteCase15": {
- "Write": [{
- "LockFlag": "DontLock",
- "SegmentLength": "3"
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
- },
- "WriteCase16": {
- "Write": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": "1"
- }]
- },
- "WriteCase17": {
- "Write": [{
- "LockFlag": "DontLock",
- "SegmentLength": "Three"
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": 1
- }]
- },
- "WriteCase18": {
- "Write": [{
- "LockFlag": "DontLock",
- "SegmentLength": 3
- }, {
- "LockFlag": "LockAll",
- "SegmentLength": "One"
- }]
- }
+ "ReaD": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "ReadCase6": {
+ "Read": [
+ {
+ "LockFlag": "lockall",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "ReadCase7": {
+ "Read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "locksame",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "ReadCase8": {
+ "Read": [
+ {
+ "LockFlag": "dontlock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "locksame",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "ReadCase9": {
+ "Read": [
+ {
+ "LockFlag": "ontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "ReadCase10": {
+ "Read": [
+ {
+ "LockFlag": "*DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "ReadCase11": {
+ "Read": [
+ {
+ "LockFlag": "dontlock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "lockall",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "ReadCase12": {
+ "Read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 7
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 0
+ }
+ ]
+ },
+ "ReadCase13": {
+ "Read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 0
+ }
+ ]
+ },
+ "ReadCase14": {
+ "Read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 7
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "ReadCase15": {
+ "Read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": "3"
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "ReadCase16": {
+ "Read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": "1"
+ }
+ ]
+ },
+ "ReadCase17": {
+ "Read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": "Three"
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "ReadCase18": {
+ "Read": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": "One"
+ }
+ ]
+ },
+ "WriteCase1": {
+ "write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase2": {
+ "WRITE": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase3": {
+ "*Write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase4": {
+ "Wrte": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase5": {
+ "WritE": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockSame",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase6": {
+ "Write": [
+ {
+ "LockFlag": "lockall",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase7": {
+ "Write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "locksame",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase8": {
+ "Write": [
+ {
+ "LockFlag": "dontlock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "locksame",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase9": {
+ "Write": [
+ {
+ "LockFlag": "ontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase10": {
+ "Write": [
+ {
+ "LockFlag": "*DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase11": {
+ "Write": [
+ {
+ "LockFlag": "dontlock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "lockall",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase12": {
+ "Write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 7
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 0
+ }
+ ]
+ },
+ "WriteCase13": {
+ "Write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 0
+ }
+ ]
+ },
+ "WriteCase14": {
+ "Write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 7
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase15": {
+ "Write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": "3"
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase16": {
+ "Write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": "1"
+ }
+ ]
+ },
+ "WriteCase17": {
+ "Write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": "Three"
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": 1
+ }
+ ]
+ },
+ "WriteCase18": {
+ "Write": [
+ {
+ "LockFlag": "DontLock",
+ "SegmentLength": 3
+ },
+ {
+ "LockFlag": "LockAll",
+ "SegmentLength": "One"
+ }
+ ]
+ }
}
}
diff --git a/data/task_state.json b/data/task_state.json
index 14accd3..2fa30c6 100644
--- a/data/task_state.json
+++ b/data/task_state.json
@@ -14,10 +14,7 @@
},
"TaskService": {
"CompletedTaskOverWritePolicy": {
- "AllowedValues": [
- "Manual",
- "Oldest"
- ]
+ "AllowedValues": ["Manual", "Oldest"]
},
"Status": {
"Health": "OK",
@@ -49,4 +46,4 @@
]
}
}
-}
\ No newline at end of file
+}