:: commit 6a2594214c33d2175d8f2ee9a4009ae1f68b09bf

mintsuki <mintsuki@protonmail.com> — 2024-10-20 21:05

parents: 1e3e164777

test: Do not use sudo in iso9660/pxe test targets

diff --git a/test.mk b/test.mk
index 10613a5e..66b14405 100644
--- a/test.mk
+++ b/test.mk
@@ -169,8 +169,8 @@ iso9660-test:
 	$(MAKE) -C test -f test.mk TOOLCHAIN_FILE='$(call SHESCAPE,$(BUILDDIR))/toolchain-files/uefi-x86_64-toolchain.mk'
 	rm -rf test_image/
 	$(MKDIR_P) test_image/boot
-	sudo cp -rv $(BINDIR)/* test_image/boot/
-	sudo cp -rv test/* test_image/boot/
+	cp -rv $(BINDIR)/* test_image/boot/
+	cp -rv test/* test_image/boot/
 	xorriso -as mkisofs -b boot/limine-bios-cd.bin -no-emul-boot -boot-load-size 4 -boot-info-table test_image/ -o test.iso
 	qemu-system-x86_64 -net none -smp 4   -cdrom test.iso -debugcon stdio
 
@@ -203,8 +203,8 @@ pxe-test:
 	$(MAKE) -C test -f test.mk TOOLCHAIN_FILE='$(call SHESCAPE,$(BUILDDIR))/toolchain-files/uefi-x86_64-toolchain.mk'
 	rm -rf test_image/
 	$(MKDIR_P) test_image/boot
-	sudo cp -rv $(BINDIR)/* test_image/boot/
-	sudo cp -rv test/* test_image/boot/
+	cp -rv $(BINDIR)/* test_image/boot/
+	cp -rv test/* test_image/boot/
 	qemu-system-x86_64  -smp 4  -netdev user,id=n0,tftp=./test_image,bootfile=boot/limine-bios-pxe.bin -device rtl8139,netdev=n0,mac=00:00:00:11:11:11 -debugcon stdio
 
 .PHONY: uefi-x86-64-test
tab: 248 wrap: offon