Skip to content

Commit

Permalink
Intentionally break ssystem.t unit test so we can see workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
davelcpanelnet committed Sep 26, 2024
1 parent e2937e1 commit e1d05bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/ssystem.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ my $mock_log_file = Test::MockFile->file('/var/log/elevate-cpanel.log');

my $cpev = cpev->new->_init;

is( cpev->ssystem('nope'), 42, q[ssystem( 'nope' ) is disallowed] );
is( cpev->ssystem('nope'), undef, q[ssystem( 'nope' ) is disallowed] );
is( cpev->ssystem('grep'), 42, 'Commands that are not absolute paths are not allowed' );

is( cpev->ssystem('/etc/apache2/conf/httpd.conf'), 42, 'Commands that are not executable are not allowed' );
Expand Down

0 comments on commit e1d05bd

Please sign in to comment.