Add --compressor_types option

E2E test time of OTA is approaching ~40 minutes. Add an option to
disable brotli compression to speed up unit tests. From our past
experience, compressino algorithms are hardly sources of bugs. So no
need to test compression algorihtms in presubmit test.

Test: th
Change-Id: I7660efd6eb3d5c305c74d1a9fef63f8121653ea0
diff --git a/scripts/brillo_update_payload b/scripts/brillo_update_payload
index 0b1b463..2f5ef22 100755
--- a/scripts/brillo_update_payload
+++ b/scripts/brillo_update_payload
@@ -210,6 +210,8 @@
     "Optional: Enable the use of Virtual AB Compression XOR feature"
   DEFINE_string force_minor_version "" \
     "Optional: Override the minor version for the delta generation."
+  DEFINE_string compressor_types "" \
+    "Optional: allowed compressor types. Colon separated, allowe values are bz2 and brotli"
 fi
 if [[ "${COMMAND}" == "hash" || "${COMMAND}" == "sign" ]]; then
   DEFINE_string unsigned_payload "" "Path to the input unsigned payload."
@@ -717,6 +719,10 @@
       GENERATOR_ARGS+=(
         --disable_verity_computation="${FLAGS_disable_verity_computation}" )
     fi
+    if [[ -n "${FLAGS_compressor_types}" ]]; then
+      GENERATOR_ARGS+=(
+        --compressor_types="${FLAGS_compressor_types}" )
+    fi
   fi
 
   if [[ -n "${FLAGS_enable_vabc_xor}" ]]; then