diff options
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2016-12-20 15:59:29 +0530 |
---|---|---|
committer | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-01-17 21:48:42 +0530 |
commit | ed4907342897301ab96cbf2c617cafd78caf25a1 (patch) | |
tree | f91f21b7794892ca8d6d23b58a5d1ca0e97bb9d9 /parse_led.py | |
parent | 98691fa88d107a1649847b032f1a9b1218061324 (diff) | |
download | phosphor-led-manager-ed4907342897301ab96cbf2c617cafd78caf25a1.tar.gz phosphor-led-manager-ed4907342897301ab96cbf2c617cafd78caf25a1.zip |
Enable gtest for testing LED set operations
This patchset enables gtest to allow different combinations
of LED set operations to be verified at build time.
Change-Id: I9c2ddf82c2e23be911233b23037ee44e3ce301db
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'parse_led.py')
-rwxr-xr-x | parse_led.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/parse_led.py b/parse_led.py index ea58876..35f67aa 100755 --- a/parse_led.py +++ b/parse_led.py @@ -11,9 +11,9 @@ if __name__ == '__main__': ofile.write('/* !!! WARNING: This is a GENERATED Code..') ofile.write('Please do NOT Edit !!! */\n\n') - ofile.write('const std::map<std::string,') - ofile.write(' std::set<phosphor::led::Manager::LedAction>>') - ofile.write(' phosphor::led::Manager::ledMap = {\n\n') + ofile.write('static const std::map<std::string,') + ofile.write(' std::set<phosphor::led::Layout::LedAction>>') + ofile.write(' systemLedMap = {\n\n') for group in ifile.iterkeys(): # Value of this group is a std::set<string, led structure> ledset = ifile[group] @@ -23,7 +23,7 @@ if __name__ == '__main__': for name, value in list_dict.iteritems(): if group and led_dict and name and value: ofile.write(' {\"' + led_dict + '\",') - ofile.write(value + '},\n') + ofile.write('phosphor::led::Layout::' + value + '},\n') ofile.write(' }},\n') ofile.write('};\n') |