From feea52629010e3676a618f73b84964970b19bb2c Mon Sep 17 00:00:00 2001 From: "E. Fynn" Date: Thu, 17 Mar 2022 17:58:02 -0300 Subject: [PATCH] Adjust tests - Remove test-ledger folder - Run python subprocess with `shell=True` --- .github/workflows/build.yml | 9 +++++---- tests/start_test_validator.py | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 36568f45a..49f94284d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,28 +109,29 @@ jobs: tests/test_solido.py kill -9 $validator + rm -r test-ledger - name: Run Multisig integration test run: | export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH" validator=$(tests/start_test_validator.py) - # We don't need to run keygen/setup again, the private key and state - # should still be there from the previous run. + tests/airdrop_lamports.sh tests/test_multisig.py kill -9 $validator + rm -r test-ledger - name: Run Anker integration test run: | export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH" validator=$(tests/start_test_validator.py) - # We don't need to run keygen/setup again, the private key and state - # should still be there from the previous run. + tests/airdrop_lamports.sh tests/test_anker.py kill -9 $validator + rm -r test-ledger lint: runs-on: ubuntu-latest diff --git a/tests/start_test_validator.py b/tests/start_test_validator.py index bc6570217..39fb9334d 100755 --- a/tests/start_test_validator.py +++ b/tests/start_test_validator.py @@ -21,6 +21,7 @@ 'solana-test-validator', ], stdout=subprocess.DEVNULL, + shell=True, ) # Wait up to 60 seconds for the validator to be running and processing blocks. We