]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
github: re-arrange workflow run commands
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 21 Oct 2021 21:25:55 +0000 (15:25 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 25 Oct 2021 14:01:58 +0000 (08:01 -0600)
The current workflow executes the functional tests from the make check
called at the top-level source directory. Though this runs the tests
case, it also has an unintended side effect of re-running gunit tests
for every functional test combination in the workflow. Fix it, by
re-arranging the function test run commands, to change into
tests/ftests directory before executing make check.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit 348f50bed7bfab1a63a649b4a65120fb03a7d3c2)

.github/workflows/continuous-integration.yml

index 2045b358bfb03e14341ee85841f1dbeeca491bbc..a3209e33a46f23ed9bb90272884f6781db04257e 100644 (file)
@@ -65,9 +65,9 @@ jobs:
       uses: ./.github/actions/setup-libcgroup
     - name: Run functional tests
       run: |
-        make check
         pushd tests/ftests
         ./028-cgclear-basic_cgclear.py --no-container -l 10 -L ftests-28.log
+        make check
         popd
     - name: Display test logs
       if: ${{ always() }}
@@ -114,9 +114,9 @@ jobs:
       uses: ./.github/actions/setup-libcgroup
     - name: Run functional tests
       run: |
-        make check
         pushd tests/ftests
         ./028-cgclear-basic_cgclear.py --no-container -l 10 -L ftests-28.log
+        make check
         popd
     - name: Display test logs
       if: ${{ always() }}