Skip to content

Commit

Permalink
clean tmp dir before running next test
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Sep 17, 2024
1 parent 03a0e82 commit e492ed1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions features/test/utils/ubuntu18.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ if test -n "${gh_token:-}" \
check "no creds with GH_TOKEN, VAULT_HOST, and SCCACHE_BUCKET should generate credentials" no_creds_with_GH_TOKEN_VAULT_HOST_and_SCCACHE_BUCKET_should_generate_credentials;

existing_creds_with_GH_TOKEN_VAULT_HOST_and_SCCACHE_BUCKET_should_reuse_credentials() {
rm -rf /tmp/.aws;
mv ~/.aws /tmp/;
reset_state;
cp -ar /tmp/.aws ~/;
Expand Down Expand Up @@ -203,6 +204,7 @@ if test -n "${gh_token:-}" \
check "no creds with GH_TOKEN, AWS_ROLE_ARN, and SCCACHE_BUCKET should generate credentials" no_creds_with_GH_TOKEN_AWS_ROLE_ARN_and_SCCACHE_BUCKET_should_generate_credentials;

existing_creds_with_GH_TOKEN_AWS_ROLE_ARN_and_SCCACHE_BUCKET_should_reuse_credentials() {
rm -rf /tmp/.aws;
mv ~/.aws /tmp/;
reset_state;
cp -ar /tmp/.aws ~/;
Expand Down
2 changes: 2 additions & 0 deletions features/test/utils/ubuntu20.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ if test -n "${gh_token:-}" \
check "no creds with GH_TOKEN, VAULT_HOST, and SCCACHE_BUCKET should generate credentials" no_creds_with_GH_TOKEN_VAULT_HOST_and_SCCACHE_BUCKET_should_generate_credentials;

existing_creds_with_GH_TOKEN_VAULT_HOST_and_SCCACHE_BUCKET_should_reuse_credentials() {
rm -rf /tmp/.aws;
mv ~/.aws /tmp/;
reset_state;
cp -ar /tmp/.aws ~/;
Expand Down Expand Up @@ -203,6 +204,7 @@ if test -n "${gh_token:-}" \
check "no creds with GH_TOKEN, AWS_ROLE_ARN, and SCCACHE_BUCKET should generate credentials" no_creds_with_GH_TOKEN_AWS_ROLE_ARN_and_SCCACHE_BUCKET_should_generate_credentials;

existing_creds_with_GH_TOKEN_AWS_ROLE_ARN_and_SCCACHE_BUCKET_should_reuse_credentials() {
rm -rf /tmp/.aws;
mv ~/.aws /tmp/;
reset_state;
cp -ar /tmp/.aws ~/;
Expand Down
2 changes: 2 additions & 0 deletions features/test/utils/ubuntu22.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ if test -n "${gh_token:-}" \
check "no creds with GH_TOKEN, VAULT_HOST, and SCCACHE_BUCKET should generate credentials" no_creds_with_GH_TOKEN_VAULT_HOST_and_SCCACHE_BUCKET_should_generate_credentials;

existing_creds_with_GH_TOKEN_VAULT_HOST_and_SCCACHE_BUCKET_should_reuse_credentials() {
rm -rf /tmp/.aws;
mv ~/.aws /tmp/;
reset_state;
cp -ar /tmp/.aws ~/;
Expand Down Expand Up @@ -203,6 +204,7 @@ if test -n "${gh_token:-}" \
check "no creds with GH_TOKEN, AWS_ROLE_ARN, and SCCACHE_BUCKET should generate credentials" no_creds_with_GH_TOKEN_AWS_ROLE_ARN_and_SCCACHE_BUCKET_should_generate_credentials;

existing_creds_with_GH_TOKEN_AWS_ROLE_ARN_and_SCCACHE_BUCKET_should_reuse_credentials() {
rm -rf /tmp/.aws;
mv ~/.aws /tmp/;
reset_state;
cp -ar /tmp/.aws ~/;
Expand Down

0 comments on commit e492ed1

Please sign in to comment.