mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
some eiger dacs
This commit is contained in:
parent
7f3d5e8a7e
commit
1322cff405
@ -21,7 +21,7 @@ for fname in files:
|
|||||||
|
|
||||||
|
|
||||||
for line in data:
|
for line in data:
|
||||||
if 'TEST_CASE' in line:
|
if 'TEST_CASE' in line or 'SECTION' in line:
|
||||||
cmd = line.split("\"")[1]
|
cmd = line.split("\"")[1]
|
||||||
tested.append(cmd)
|
tested.append(cmd)
|
||||||
|
|
||||||
@ -37,15 +37,10 @@ if args.startswith is not None:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
not_tested = []
|
not_tested = [cmd for cmd in all_cmd if cmd not in tested]
|
||||||
misnamed = []
|
misnamed = [cmd for cmd in tested if cmd not in all_cmd]
|
||||||
for cmd in all_cmd:
|
tested = [cmd for cmd in tested if cmd in all_cmd]
|
||||||
if cmd not in tested:
|
|
||||||
not_tested.append(cmd)
|
|
||||||
|
|
||||||
for cmd in tested:
|
|
||||||
if cmd not in all_cmd:
|
|
||||||
misnamed.append(cmd)
|
|
||||||
|
|
||||||
print("\nThe following commands are tested:")
|
print("\nThe following commands are tested:")
|
||||||
for cmd in tested:
|
for cmd in tested:
|
||||||
@ -55,7 +50,7 @@ print("\nThe following commands are NOT tested:")
|
|||||||
for cmd in not_tested:
|
for cmd in not_tested:
|
||||||
print(cmd)
|
print(cmd)
|
||||||
|
|
||||||
print(f"\nThe following {len(misnamed)} tests are misnamed and should be renamed:")
|
print(f"\nThe following {len(misnamed)} tests does not match commands and might be misnamed:")
|
||||||
for cmd in misnamed:
|
for cmd in misnamed:
|
||||||
print(cmd)
|
print(cmd)
|
||||||
print(f'\nTests cover {len(tested)} of {len(all_cmd)} commands')
|
print(f'\nTests cover {len(tested)} of {len(all_cmd)} commands')
|
Loading…
x
Reference in New Issue
Block a user