diff --git a/regtest/common.bash b/regtest/common.bash index 8d2a404..5dea3ab 100644 --- a/regtest/common.bash +++ b/regtest/common.bash @@ -67,7 +67,6 @@ case "${param[0]}" in doall="yes" ;; cont) - doall="yes" cont_at="${param[1]}" ;; esac @@ -104,8 +103,8 @@ function file_exists() function try() { local doit=$(grep "${CODEC_PREFIX}_$2 " $CONFIGFILE) - if echo "$OS" | grep -q Windows && test -e "$CONFIGFILE_WIN" && grep -q "${CODEC_PREFIX}_$2" "$CONFIGFILE_WIN"; then - doit=$(grep "${CODEC_PREFIX}_$2" "$CONFIGFILE_WIN") + if echo "$OS" | grep -q Windows && test -e "$CONFIGFILE_WIN" && grep -q "${CODEC_PREFIX}_$2 " "$CONFIGFILE_WIN"; then + doit=$(grep "${CODEC_PREFIX}_$2 " "$CONFIGFILE_WIN") fi if test -z "$doit"; then @@ -217,6 +216,10 @@ function run_regtest() filter=cat echo "$options" | grep -qw SORTED && filter=sort + if [ "${CODEC_PREFIX}_${testsymbol}" = RS01_scan_no_device ]; then + # for Windows + sed -i -re "s=device $NON_EXISTENT_DEVICE\.=/dev/sdz: No such file or directory=" $NEWLOG + fi if ! diff <(tail -n +3 $REFLOG | $filter) <(sed -re "s=${SED_REMOVE_ISO_DIR}==g" $NEWLOG | $filter) >${DIFFLOG}; then printf "%b\r%b\n" "BAD; diffs found (created):" "[\e[31m✘\e[0m]" diff --git a/regtests/config-win.txt b/regtests/config-win.txt new file mode 100644 index 0000000..b8506c7 --- /dev/null +++ b/regtests/config-win.txt @@ -0,0 +1,26 @@ +RS01_ecc_no_read_perm no +RS01_ecc_no_write_perm no +RS01_fix_no_read_perm no +RS01_fix_no_read_perm_ecc no +RS01_fix_no_write_perm no +RS01_scan_with_no_permission_for_ecc no +RS01_read_with_no_permission_for_ecc no +RS01_adaptive_with_no_permission_for_ecc no +RS02_ecc_no_read_perm no +RS02_ecc_no_write_perm no +RS02_fix_no_read_perm no +RS02_fix_no_write_perm no +RS03i_ecc_no_read_perm no +RS03i_ecc_no_write_perm no +RS03i_fix_no_read_perm no +RS03i_fix_no_write_perm no +RS03f_ecc_no_read_perm no +RS03f_ecc_no_write_perm no +RS03f_fix_no_read_perm no +RS03f_fix_no_read_perm_ecc no +RS03f_fix_no_write_perm no +RS03f_fix_no_write_perm_ecc no + +RS01_scan_no_device_access no +RS01_read_no_device_access no +RS01_adaptive_no_device_access no diff --git a/scsi-win32.c b/scsi-win32.c index cec99e2..0b0e3cb 100644 --- a/scsi-win32.c +++ b/scsi-win32.c @@ -264,7 +264,7 @@ DeviceHandle* OpenDevice(char *device) dh = open_spti_device(Closure->device); if(!dh) - { Stop(_("\nCould not open device %s."), device); + { Stop(_("Could not open device %s."), device); return NULL; } }