This disables progress indicator for tests. This in turn fixes test
flakiness as they ended up timing-dependent.
grub_uint64_t now;
static grub_uint64_t last_progress_update_time;
grub_file_t file = data;
+ const char *e;
file->progress_offset += length;
if (call_depth)
return;
+ e = grub_env_get ("enable_progress_indicator");
+ if (e && e[0] == '0') {
+ return;
+ }
+
call_depth = 1;
now = grub_get_time_ms ();
cfgfile=`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1
cat <<EOF >${cfgfile}
grubshell=yes
+enable_progress_indicator=0
+export enable_progress_indicator
EOF