Skip to content

Commit

Permalink
Add sudo to commands to backup/restore Swupd_Root.pem
Browse files Browse the repository at this point in the history
  • Loading branch information
bwarden committed Aug 28, 2024
1 parent e170bfd commit 44fa368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/only_in_ci_system/api-3rd-party-add.bats
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test_setup() {

# Backup the original certificate
[[ -f ${SWUPD_ROOT_CERT} ]] &&
mv ${SWUPD_ROOT_CERT} ${SWUPD_ROOT_CERT}.orig
sudo mv ${SWUPD_ROOT_CERT} ${SWUPD_ROOT_CERT}.orig
sudo mkdir -p /usr/share/clear/update-ca
sudo cp test/functional/only_in_ci_system/pemfile ${SWUPD_ROOT_CERT}

Expand All @@ -38,7 +38,7 @@ test_teardown() {
sudo rm -f ${SWUPD_ROOT_CERT}
# Restore the original certificate
[[ -f ${SWUPD_ROOT_CERT}.orig ]] &&
mv ${SWUPD_ROOT_CERT}.orig ${SWUPD_ROOT_CERT}
sudo mv ${SWUPD_ROOT_CERT}.orig ${SWUPD_ROOT_CERT}

}

Expand Down

0 comments on commit 44fa368

Please sign in to comment.