Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9be2e6b5 authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt
Browse files

ktest: Use different temp config name for minconfig



By using the "use_config" for minconfig and addconfig we risk
trying to copy itself to itself, which will cause an unexpected failure.

Use a different name instead.

Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent d1fbd7e6
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1735,9 +1735,9 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) {
	$minconfig = $addconfig;
	$minconfig = $addconfig;


    } elsif (defined($addconfig)) {
    } elsif (defined($addconfig)) {
	run_command "cat $addconfig $minconfig > $tmpdir/use_config" or
	run_command "cat $addconfig $minconfig > $tmpdir/add_config" or
	    dodie "Failed to create temp config";
	    dodie "Failed to create temp config";
	$minconfig = "$tmpdir/use_config";
	$minconfig = "$tmpdir/add_config";
    }
    }


    my $checkout = $opt{"CHECKOUT[$i]"};
    my $checkout = $opt{"CHECKOUT[$i]"};