Add sudo for ram disk creation

This commit is contained in:
David Dworken 2023-09-02 17:35:22 -07:00
parent 96446eb62c
commit 0ee8c1c796
No known key found for this signature in database

View File

@ -41,9 +41,9 @@ jobs:
# Set up a tmpfs for ~/.hishtory/ to help tests run faster # Set up a tmpfs for ~/.hishtory/ to help tests run faster
mkdir ~/.hishtory/ mkdir ~/.hishtory/
mount -F tmpfs -o size=500M swap ~/.hishtory/ || true sudo mount -F tmpfs -o size=500M swap ~/.hishtory/ || true
diskutil apfs create $(hdiutil attach -nomount ram://1024000) RAMDisk || true sudo diskutil apfs create $(sudo hdiutil attach -nomount ram://1024000) RAMDisk || true
mount -o noatime -t apfs /Volumes/RAMDisk ~/.hishtory/ sudo mount -o noatime -t apfs /Volumes/RAMDisk ~/.hishtory/ || true
# Run the tests # Run the tests
make test make test