fix CI exit code

This commit is contained in:
Kevin Hester
2021-04-16 11:49:29 +08:00
parent e99844abbd
commit e4ef8b7b3f
3 changed files with 6 additions and 6 deletions

View File

@@ -202,11 +202,11 @@ def testSimulator():
iface.localNode.exitSimulator()
iface.close()
logging.info("Integration test successful!")
sys.exit(0)
except:
print("Error while testing simulator:", sys.exc_info()[0])
traceback.print_exc()
sys.exit(1)</code></pre>
sys.exit(1)
sys.exit(0)</code></pre>
</details>
</section>
<section>
@@ -465,11 +465,11 @@ python3 -c 'from meshtastic.test import testSimulator; testSimulator()'</p></div
iface.localNode.exitSimulator()
iface.close()
logging.info(&#34;Integration test successful!&#34;)
sys.exit(0)
except:
print(&#34;Error while testing simulator:&#34;, sys.exc_info()[0])
traceback.print_exc()
sys.exit(1)</code></pre>
sys.exit(1)
sys.exit(0)</code></pre>
</details>
</dd>
<dt id="meshtastic.test.testThread"><code class="name flex">

View File

@@ -174,8 +174,8 @@ def testSimulator():
iface.localNode.exitSimulator()
iface.close()
logging.info("Integration test successful!")
sys.exit(0)
except:
print("Error while testing simulator:", sys.exc_info()[0])
traceback.print_exc()
sys.exit(1)
sys.exit(0)

View File

@@ -12,7 +12,7 @@ with open("README.md", "r") as fh:
# This call to setup() does all the work
setup(
name="meshtastic",
version="1.2.29",
version="1.2.30",
description="Python API & client shell for talking to Meshtastic devices",
long_description=long_description,
long_description_content_type="text/markdown",