-
Notifications
You must be signed in to change notification settings - Fork 718
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12962 from mpurg/ubuntu_fix_tests_root_path_no_dot
Fix tests for root_path_no_dot on Ubuntu
- Loading branch information
Showing
6 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
.../system/accounts/accounts-session/root_paths/root_path_no_dot/tests/absolute_path.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/bin/bash | ||
# remediation = none | ||
|
||
{{% if 'ubuntu' in product %}} | ||
echo 'export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:./:/root/bin"' >> /etc/environment | ||
{{% else %}} | ||
echo 'export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:./:/root/bin"' >> /etc/bashrc | ||
{{% endif %}} |
4 changes: 4 additions & 0 deletions
4
.../system/accounts/accounts-session/root_paths/root_path_no_dot/tests/colon_on_path.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/bin/bash | ||
# remediation = none | ||
|
||
{{% if 'ubuntu' in product %}} | ||
echo 'export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:"' >> /etc/environment | ||
{{% else %}} | ||
echo 'export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:"' >> /etc/bashrc | ||
{{% endif %}} |
4 changes: 4 additions & 0 deletions
4
...m/accounts/accounts-session/root_paths/root_path_no_dot/tests/doublecolon_on_path.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/bin/bash | ||
# remediation = none | ||
|
||
{{% if 'ubuntu' in product %}} | ||
echo 'export PATH="/usr/local/sbin::/usr/local/bin:/usr/sbin:/usr/bin:/root/bin"' >> /etc/environment | ||
{{% else %}} | ||
echo 'export PATH="/usr/local/sbin::/usr/local/bin:/usr/sbin:/usr/bin:/root/bin"' >> /etc/bashrc | ||
{{% endif %}} |
4 changes: 4 additions & 0 deletions
4
.../accounts/accounts-session/root_paths/root_path_no_dot/tests/doubleperiod_on_path.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/bin/bash | ||
# remediation = none | ||
|
||
{{% if 'ubuntu' in product %}} | ||
echo 'export PATH="/usr/local/sbin:..:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin"' >> /etc/environment | ||
{{% else %}} | ||
echo 'export PATH="/usr/local/sbin:..:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin"' >> /etc/bashrc | ||
{{% endif %}} |
4 changes: 4 additions & 0 deletions
4
.../system/accounts/accounts-session/root_paths/root_path_no_dot/tests/no_risky_path.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/bin/bash | ||
# | ||
|
||
{{% if 'ubuntu' in product %}} | ||
echo 'export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin"' >> /etc/environment | ||
{{% else %}} | ||
echo 'export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin"' >> /etc/bashrc | ||
{{% endif %}} |
4 changes: 4 additions & 0 deletions
4
...system/accounts/accounts-session/root_paths/root_path_no_dot/tests/period_on_path.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/bin/bash | ||
# remediation = none | ||
|
||
{{% if 'ubuntu' in product %}} | ||
echo 'export PATH=".:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin"' >> /etc/environment | ||
{{% else %}} | ||
echo 'export PATH=".:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin"' >> /etc/bashrc | ||
{{% endif %}} |