]> ruderich.org/simon Gitweb - safcm/safcm.git/commit
sync: run most tests which modify the host only in CI
authorSimon Ruderich <simon@ruderich.org>
Wed, 28 Apr 2021 10:26:18 +0000 (12:26 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 28 Apr 2021 10:31:35 +0000 (12:31 +0200)
commite4c6a178848145c8dba68ed054cbb48dcecccf65
tree1b21461938edd010369d4074adcc9d76805383f9
parent8bf2ac237af2faacd963485696c499c46b5a11e5
sync: run most tests which modify the host only in CI

This is especially important in case the user executes the tests as root
(no recommended but not prevented either). Permissions on paths like /
or /tmp which differ from those expected by the test could otherwise be
modified by the tests.

However, the end-to-end SSH tests which write /tmp/safcm-remote-$uid
(but no other paths) are still run so we get proper coverage of basic
features.
ci/run
cmd/safcm-remote/sync/files_test.go