make the IRTX plugin work without the IR plugin

This commit is contained in:
Edwin Eefting
2017-04-02 19:01:58 +02:00
parent 57c351a4d3
commit 027313872c
2 changed files with 15 additions and 1 deletions
+11 -1
View File
@@ -99,10 +99,20 @@ if subprocess.check_output("git ls-files -m src", shell=True)!="":
plugins=glob.glob("src/_[CPN]*.ino")
plugins.sort()
#remove all plugins and get base size
for plugin in plugins:
os.remove(plugin)
if len(sys.argv)>2:
test_plugins=sys.argv[2:]
else:
test_plugins=plugins
test_plugins.sort()
output_format="{:<30}|{:<11}|{:<11}|{:<11}|{:<11}|{:<11}"
print(output_format.format(
"plugin",
@@ -122,7 +132,7 @@ base=analyse_memory(".pioenvs/dev_4096/firmware.elf")
plugin_results={}
for plugin in plugins:
for plugin in test_plugins:
# print("building with {}".format(plugin))
subprocess.check_call("git checkout {}".format(plugin), shell=True)
subprocess.check_call("platformio run --silent --environment dev_4096", shell=True)