plain forgot to save the values for regression testing
authorespie <espie@openbsd.org>
Sun, 8 Oct 2023 06:55:02 +0000 (06:55 +0000)
committerespie <espie@openbsd.org>
Sun, 8 Oct 2023 06:55:02 +0000 (06:55 +0000)
usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm

index c7d1d70..1cf6488 100644 (file)
@@ -1,5 +1,5 @@
 # ex:ts=8 sw=4:
-# $OpenBSD: AddCreateDelete.pm,v 1.52 2023/06/13 09:07:16 espie Exp $
+# $OpenBSD: AddCreateDelete.pm,v 1.53 2023/10/08 06:55:02 espie Exp $
 #
 # Copyright (c) 2007-2014 Marc Espie <espie@openbsd.org>
 #
@@ -78,6 +78,11 @@ sub handle_options($state, $opt_string, @usage)
                }
        }
        $state->{interactive} = $state->interactive_class($i)->new($state, $i);
+       if ($state->defines('REGRESSION_TESTING')) {
+               for my $i (split(',', $state->defines('REGRESSION_TESTING'))) {
+                       $state->{regression}{$i} = 1;
+               }
+       }
 }
 
 sub interactive_class($, $i)