-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TS-534: Fix card.binary HIL testing. (#153)
- Use a single PlatformIO command to build, upload, and test. Previously, we we did this in a few steps because of a problem where the Swan's serial port wasn't ready after uploading and so the test step would fail because it couldn't find the serial port. I was able to reduce this to one step by using the approach described here: platformio/platformio-core#3742 - Fix a Bash typo in the step that cleaned up the Notehub proxy route. - I reinstalled tunnelmole using npm on the Orange Pi, and it's working again. I really don't know what was wrong here. In order for run_tmole.sh to find the tmole executable, I had to add a couple lines to the start of the script so that npm packages are on PATH. - Upgrade the note-arduino version to latest.
- Loading branch information
1 parent
2eac09e
commit c828782
Showing
5 changed files
with
42 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Import("env") | ||
|
||
def after_upload(source, target, env): | ||
port = env.GetProjectOption("test_port") | ||
print("waiting for " + port + " ...") | ||
import serial | ||
while True: | ||
try: | ||
s = serial.Serial(port) | ||
break | ||
except: | ||
pass | ||
|
||
env.AddPostAction("upload", after_upload) |