]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - test/scripts/upload_feather_huzzah_circuitpython_put.sh
Added agnostic as shared dependency between micropython and circuitpython test config...
[Adafruit_Blinka-hackapet.git] / test / scripts / upload_feather_huzzah_circuitpython_put.sh
index 709f1bafa9b344df4ec2dea3648de0acb48078fc..cb4e544627a2ff87917023632ff00bfc71002391 100755 (executable)
@@ -35,4 +35,12 @@ do
     find . -type f -name '*.mpy' | \
         xargs -n1 -I {} sh -c "echo uploading {} ...; ampy --port ${PORT} put {} {}"
     cd ../
-done
\ No newline at end of file
+done
+
+# switch to adafruit_blinka source
+cd ../../src
+
+# upload agnostic/mpy for platform detection used by tests
+ampy --port $PORT mkdir --exists-okay adafruit_blinka
+$MPYCROSS adafruit_blinka/agnostic.py
+ampy --port $PORT put adafruit_blinka/agnostic.mpy adafruit_blinka/agnostic.mpy
\ No newline at end of file