Skip to content

Commit 0762228

Browse files
committed
Copy test folder before running test suite on CI
When we no longer install the test package AND want to run outside the source tree (to test the installed easybuild package) we need to retrieve the test package first.
1 parent 8513099 commit 0762228

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/unit_tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ jobs:
240240
# create file owned by root but writable by anyone (used by test_copy_file)
241241
sudo touch /tmp/file_to_overwrite_for_easybuild_test_copy_file.txt
242242
sudo chmod o+w /tmp/file_to_overwrite_for_easybuild_test_copy_file.txt
243+
# Copy test folder first as that module is NOT installed. Could be run from source tree but we want to test the installed package
244+
cp -r $GITHUB_WORKSPACE/test .
243245
# run test suite
244246
python -O -m test.framework.suite 2>&1 | tee test_framework_suite.log
245247
# try and make sure output of running tests is clean (no printed messages/warnings)

0 commit comments

Comments
 (0)