Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tests for testing deduplication of values macro changes
- Loading branch information
Carlos Matos
committed
May 7, 2021
1 parent
7a83a5e
commit 43eb263
Showing
5 changed files
with
41 additions
and
7 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...em/accounts/accounts-session/accounts_tmout/tests/duplicate_correct_value_profile.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# variables = var_accounts_tmout=700 | ||
|
||
sed -i "/.*TMOUT.*/d" /etc/profile.d/*.sh | ||
|
||
if grep -q "TMOUT" /etc/profile; then | ||
sed -i "s/.*TMOUT.*/TMOUT=700/" /etc/profile | ||
echo "TMOUT=800" >> /etc/profile.d/tmout.sh | ||
else | ||
echo "TMOUT=700" >> /etc/profile | ||
echo "TMOUT=800" >> /etc/profile.d/tmout.sh | ||
fi |
13 changes: 13 additions & 0 deletions
13
.../accounts/accounts-session/accounts_tmout/tests/duplicate_correct_value_profile_d.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# variables = var_accounts_tmout=700 | ||
|
||
sed -i "/.*TMOUT.*/d" /etc/profile | ||
|
||
if grep -q "TMOUT" /etc/profile.d/tmout.sh; then | ||
sed -i "s/.*TMOUT.*/TMOUT=700/" /etc/profile.d/tmout.sh | ||
echo "TMOUT=800" >> /etc/profile.d/tmout.sh | ||
else | ||
echo "TMOUT=700" >> /etc/profile.d/tmout.sh | ||
echo "TMOUT=800" >> /etc/profile.d/tmout.sh | ||
fi |
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
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
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