Add a run_tests.py script which runs all of the tests. Add a setup_environment.sh script which will download and build the Trezor emulator, Coldcard simulator, and bitcoind.
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From d1a3a1cef890ebe4ff72a8f89cd6c56dca89747e Mon Sep 17 00:00:00 2001
|
|
From: Andrew Chow <achow101-github@achow101.com>
|
|
Date: Tue, 27 Nov 2018 17:32:44 -0500
|
|
Subject: [PATCH] Use linux unix socket address format
|
|
|
|
---
|
|
unix/frozen-modules/pyb.py | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/unix/frozen-modules/pyb.py b/unix/frozen-modules/pyb.py
|
|
index 39778a2..0108516 100644
|
|
--- a/unix/frozen-modules/pyb.py
|
|
+++ b/unix/frozen-modules/pyb.py
|
|
@@ -23,10 +23,10 @@ class USB_HID:
|
|
import usocket as socket
|
|
fn = b'/tmp/ckcc-simulator.sock'
|
|
self.pipe = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
|
|
- addr = bytes([len(fn)+2, socket.AF_UNIX] + list(fn))
|
|
+ # addr = bytes([len(fn)+2, socket.AF_UNIX] + list(fn))
|
|
# If on linux, try uncommenting the following two lines
|
|
- #import struct
|
|
- #addr = struct.pack('H108s', socket.AF_UNIX, fn)
|
|
+ import struct
|
|
+ addr = struct.pack('H108s', socket.AF_UNIX, fn)
|
|
while 1:
|
|
try:
|
|
self.pipe.bind(addr)
|
|
--
|
|
2.11.0
|
|
|