mirror of https://github.com/ArduPilot/ardupilot
Tools: make and declare examples.py flake8-compliant
This commit is contained in:
parent
79d34b3b64
commit
ee79895a4e
|
@ -1,5 +1,14 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
Contains functions used to test the ArduPilot examples
|
||||
|
||||
AP_FLAKE8_CLEAN
|
||||
"""
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
|
||||
import os
|
||||
import pexpect
|
||||
import signal
|
||||
|
@ -8,6 +17,7 @@ import time
|
|||
|
||||
from pysim import util
|
||||
|
||||
|
||||
def run_example(filepath, valgrind=False, gdb=False):
|
||||
cmd = []
|
||||
if valgrind:
|
||||
|
@ -41,6 +51,7 @@ def run_example(filepath, valgrind=False, gdb=False):
|
|||
|
||||
print("Ran: (%s)" % str(cmd))
|
||||
|
||||
|
||||
def run_examples(debug=False, valgrind=False, gdb=False):
|
||||
dirpath = util.reltopdir(os.path.join('build', 'linux', 'examples'))
|
||||
|
||||
|
|
Loading…
Reference in New Issue