def grab_data(tests, stem):
    for t in tests:
        (msg, tag) = t
        print('\n\n==================================')
        print(msg)
        print('start DUT now')
        input('Press Enter to start data capture...')
        cp = subprocess.run(['taskset', '-c', '3', 'nice', '-20', __collector__['exe'], (stem + tag)], capture_output=True, universal_newlines=True)
        summary = cp.stdout.splitlines()[(- 5):]
        print(*summary, sep='\n')
def grab_data(tests, stem):
    for t in tests:
        (msg, tag) = t
        print('\n\n==================================')
        print(msg)
        print('start DUT now')
        input('Press Enter to start data capture...')
        cp = subprocess.run(['taskset', '-c', '3', 'nice', '-20', __collector__['exe'], (stem + tag)], capture_output=True, universal_newlines=True)
        summary = cp.stdout.splitlines()[(- 5):]
        print(*summary, sep='\n')