Skip to content

Commit cb62109

Browse files
authored
Merge pull request #86 from sommersoft/fix_simpltst
Fix Example Checks
2 parents cedbebb + 75ea69c commit cb62109

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

adabot/circuitpython_libraries.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ def print_issue_overview(*insights):
397397
startup_message.append(" - Report output will be saved to: {}".format(output_filename))
398398

399399
validators = []
400+
validator_names = []
400401
if cmd_line_args.validator:
401402
if cmd_line_args.validator != "all":
402403
validators = []
@@ -423,7 +424,7 @@ def print_issue_overview(*insights):
423424

424425
startup_message.append(" - These validators will run: {}".format(", ".join(validator_names)))
425426

426-
if "validate_contents" not in validators:
427+
if "validate_contents" not in validator_names:
427428
validator_kwarg_list["validate_contents_quiet"] = True
428429
validators.insert(0, [val[1] for val in default_validators if "validate_contents" in val[0]][0])
429430

adabot/lib/circuitpython_library_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def validate_contents(self, repo):
478478
if len(examples_list) < 1:
479479
errors.append(ERROR_MISSING_EXAMPLE_FILES)
480480
else:
481-
lib_name = repo["name"][repo["name"].rfind("_") + 1:].lower()
481+
lib_name = repo["name"][repo["name"].rfind("CircuitPython_") + 14:].lower()
482482
all_have_name = True
483483
simpletest_exists = False
484484
for example in examples_list:

0 commit comments

Comments
 (0)