Skip to content

Commit c6b3780

Browse files
committed
Run from local checkout
1 parent ad47f9f commit c6b3780

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test_cli.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ MNEMONICS_2OF3=(
88
'shadow pistol academic always adequate wildlife fancy gross oasis cylinder mustang wrist rescue view short owner flip making coding armed'
99
'shadow pistol academic acid actress prayer class unknown daughter sweater depict flip twice unkind craft early superior advocate guest smoking'
1010
)
11+
SCRIPT_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
1112

1213
echo_bold() {
1314
local bold normal
@@ -24,11 +25,12 @@ echo_error() {
2425
echo >&2 "${error}${*}${normal}"
2526
}
2627

28+
shamir() {
29+
python3 -m shamir_mnemonic.cli "$@"
30+
}
31+
2732
run_tests() {
28-
if ! command -v shamir > /dev/null; then
29-
echo 'shamir executable not found'
30-
exit 1
31-
fi
33+
cd -- "${SCRIPT_DIR}"
3234
echo_bold 'Starting CLI tests for runtime errors (NOT testing correctness)'
3335
local status=0
3436
echo_bold 'Testing create 2of3...'

0 commit comments

Comments
 (0)