Skip to content

Commit 5e5f0f9

Browse files
committed
adjust paths and only run one test to make it snappy
1 parent 4c18c8c commit 5e5f0f9

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/windows_acceptance_tests.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,38 @@ jobs:
5353
# but testall expects it to be on the same partition as where all tests are located (D: drive),
5454
# hence we just copy it over.
5555
- name: copy CFEngine to workdir partition
56-
run: 'cp -a "/c/Program Files/Cfengine" /d/a/'
56+
run: 'cp -a /d/a/core /c/'
5757

5858
- name: prune platform independent tests to make the job more efficient
5959
run: 'Remove-Item -Recurse -Force 00_basics, 01_vars, 02_classes, 10_files, 14_reports, 15_control, 16_cf-serverd, 21_methods, 22_cf-runagent, 26_cf-net, 27_cf-secret, 28_inform_testing'
60-
working-directory: "tests/acceptance"
60+
working-directory: "/c/core/tests/acceptance"
6161
shell: pwsh
6262

63-
- name: check copied cfengine contents
64-
run: "ls -l /d/a/Cfengine/bin"
65-
63+
# - name: check copied cfengine contents
64+
# run: "ls -l /d/a/Cfengine/bin"
65+
#
6666
- name: run the tests
67-
run: './testall --bindir="/d/a/Cfengine/bin" --extraclasses=EXTRA'
68-
working-directory: "tests/acceptance"
67+
run: './testall --bindir="/d/a/Cfengine/bin" --extraclasses=EXTRA ./05_processes/01_matching/process_count_found.cf '
68+
working-directory: "/c/core/tests/acceptance"
6969
env:
7070
# env vars for testall script to properly detect environment
7171
USER: runneradmin
7272
OSTYPE: msys
7373

7474
- name: print test.log
7575
run: 'cat ./tests/acceptance/test.log || true'
76+
working-directory: "/c/core"
7677
if: ${{ always() }}
7778

7879
- name: save test.log in artifacts
7980
run: 'cp ./tests/acceptance/test.log /c/artifacts/test.log || true'
81+
working-directory: "/c/core"
8082
if: ${{ always() }}
83+
8184
# make a tarball because otherwise there will be too many files and github won't save in the artifact
8285
- name: save workdir to artifacts
8386
run: 'tar cfz /c/artifacts/workdir.tar.gz ./tests/acceptance/workdir || true'
87+
working-directory: "/c/core"
8488
if: ${{ always() }}
8589

8690

0 commit comments

Comments
 (0)