Displaying 3 results from an estimated 3 matches for "47d6e23".
Did you mean:
47623
2019 Sep 19
2
Re: [PATCH nbdkit v3 3/3] retry: Add a test of this filter.
...Another potential 'read' spot.
> +if [ $retry_open_count -ne 5 ]; then
> + echo "$0: retry-reopen-fail-open-count ($retry_open_count) != 5"
> + exit 1
> +fi
> diff --git a/tests/test-retry.sh b/tests/test-retry.sh
> new file mode 100755
> index 0000000..47d6e23
> --- /dev/null
> +++ b/tests/test-retry.sh
> +touch retry-start
> +
> +# Create a custom plugin which will test retrying.
> +nbdkit -v -U - --filter=retry \
> + sh - \
> + --run 'qemu-img convert $nbd retry.img' <<'EOF'
> +case "$1...
2019 Sep 19
0
[PATCH nbdkit v3 3/3] retry: Add a test of this filter.
...e was opened 5 times.
+retry_open_count=`cat retry-reopen-fail-open-count`
+if [ $retry_open_count -ne 5 ]; then
+ echo "$0: retry-reopen-fail-open-count ($retry_open_count) != 5"
+ exit 1
+fi
diff --git a/tests/test-retry.sh b/tests/test-retry.sh
new file mode 100755
index 0000000..47d6e23
--- /dev/null
+++ b/tests/test-retry.sh
@@ -0,0 +1,97 @@
+#!/usr/bin/env bash
+# nbdkit
+# Copyright (C) 2018-2019 Red Hat Inc.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+# * Redistri...
2019 Sep 19
7
[PATCH nbdkit v3 0/3] Add new retry filter.
v2 was here:
https://www.redhat.com/archives/libguestfs/2019-September/msg00221.html
I think this is more like "the one". It handles reopen failing
correctly, and there is a second test for that. I also ran my sshd
tests locally and it worked in all scenarios I could think up (except
of course sshd not being available at the start, but we want that to
fail).
Rich.