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/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"
+ }
+ ]
+ }
}
}