Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

build: update git bisect scripts

Nick Craig-Woode44fa5db8e90
diff --git a/bin/bisect-go-rclone.sh b/bin/bisect-go-rclone.sh
index 8dffee301..9a15d1188 100755
--- a/bin/bisect-go-rclone.sh
+++ b/bin/bisect-go-rclone.sh
@@ -9,7 +9,7 @@ set -e
# Compile the go version
cd src
-./make.bash
+./make.bash || exit 125
# Make sure we are using it
source ~/bin/use-go1.11
diff --git a/bin/bisect-rclone.sh b/bin/bisect-rclone.sh
index c48ab2da9..ed24c0228 100755
--- a/bin/bisect-rclone.sh
+++ b/bin/bisect-rclone.sh
@@ -1,15 +1,33 @@
#!/bin/bash
-# Example script for git-bisect -run
+# Example script for git bisect run
+#
+# Copy this file into /tmp say before running as it will be
+# overwritten by the bisect as it is checked in.
+#
+# Change the test below to find out whether rclone is working or not
+#
# Run from the project root
+#
+# git bisect start
+# git checkout master
+# git bisect bad
+# git checkout v1.41 (or whatever is the first good one)
+# git bisect good
+# git bisect run /tmp/bisect-rclone.sh
set -e
-# Compile
-make
+# Compile notifying git on compile failure
+make || exit 125
rclone version
-# Test whatever it is that is going wrong
-truncate -s 10M /tmp/10M
-rclone delete azure:rclone-test1/10M || true
-rclone --retries 1 copyto -vv /tmp/10M azure:rclone-test1/10M --azureblob-upload-cutoff 1M
+# Test whatever it is that is going wrong - exit with non zero exit code on failure
+# commented out examples follow
+
+# truncate -s 10M /tmp/10M
+# rclone delete azure:rclone-test1/10M || true
+# rclone --retries 1 copyto -vv /tmp/10M azure:rclone-test1/10M --azureblob-upload-cutoff 1M
+
+# rm -f "/tmp/tests's.docx" || true
+# rclone -vv --retries 1 copy "drive:test/tests's.docx" /tmp