forked from github/pre-commit-opentofu
chore: Cleanup file with test data (#311)
This commit is contained in:
parent
1f16f09c6f
commit
645f3fd126
3 changed files with 8 additions and 1 deletions
4
.github/CONTRIBUTING.md
vendored
4
.github/CONTRIBUTING.md
vendored
|
|
@ -56,6 +56,10 @@ Script accept next options:
|
|||
| 5 | `RAW_TEST_`<br>`RESULTS_FILE_NAME` | `terraform_tfsec_pr123` | (Temporary) File where all test data will be stored. |
|
||||
<!-- markdownlint-enable no-inline-html -->
|
||||
|
||||
> **Note:** To make test results repeatable and comparable, be sure that on the test machine nothing generates an unstable workload. During tests good to stop any other apps and do not interact with the test machine.
|
||||
>
|
||||
> Otherwise, for eg, when you watch Youtube videos during one test and not during other, test results can differ up to 30% for the same test.
|
||||
|
||||
### Run via BASH
|
||||
|
||||
```bash
|
||||
|
|
|
|||
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
|
@ -10,7 +10,8 @@ on:
|
|||
- '**/*.sh'
|
||||
- 'Dockerfile'
|
||||
- '.pre-commit-hooks.yaml'
|
||||
|
||||
# Ignore paths
|
||||
- '!tests/**'
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ function run_tests {
|
|||
RESULTS_DIR="$(pwd)/tests/results"
|
||||
|
||||
cd "$TEST_DIR" || { echo "Specified TEST_DIR does not exist" && exit 1; }
|
||||
# Cleanup
|
||||
rm "$RESULTS_DIR/$FILE_NAME_TO_SAVE_TEST_RESULTS"
|
||||
|
||||
for ((i = 1; i <= TEST_NUM; i++)); do
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue