commit f1b58e16c257414d01bbf869c7834bccc254cb1d
parent 5d42b3e99f4c5ba29a97acca209d27dbc8cbeafd
Author: Georges Dupéron <georges.duperon@gmail.com>
Date: Tue, 3 Jul 2018 19:57:54 +0200
Make the OS file readonly, to prevent the "Text file busy" error (executed as a linux shell script + open for writing by another process)
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/example-os/Makefile b/example-os/Makefile
@@ -8,8 +8,9 @@ all: $(os_filename) os.ndisasm.disasm os.reasm.asm os.reasm .gitignore test Make
mkdir -p $@
$(os_filename): os.asm ../deploy-screenshots Makefile
+ rm -f $@
nasm -o $@ $<
- chmod a+x $@
+ chmod a+x-w $@
os.ndisasm.disasm: $(os_filename) Makefile
../utils/compact-ndisasm.sh $< $@
diff --git a/test/qemu-system-i386.sh b/test/qemu-system-i386.sh
@@ -6,7 +6,7 @@ if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then
fi
os_filename="$1"
-qemu-system-i386 -drive format=raw,file=${os_filename},index=0,if=floppy &
+qemu-system-i386 -drive format=raw,readonly,file=${os_filename},index=0,if=floppy &
pid=$!
runsikulix -r test/check-gradient.sikuli && exitcode=$? || exitcode=$?