Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
73b9d024
Commit
73b9d024
authored
8 years ago
by
Florent Thiery
Browse files
Options
Downloads
Patches
Plain Diff
do not print grep output, refs
#20590
parent
0add1eee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_send_email.sh
+2
-1
2 additions, 1 deletion
tests/test_send_email.sh
with
2 additions
and
1 deletion
tests/test_send_email.sh
+
2
−
1
View file @
73b9d024
...
...
@@ -3,9 +3,10 @@
# envoyer un mail contenant un truc random
RAND
=
"
$RANDOM
"
EMAIL
=
"deployment+
$RAND
@ubicast.eu"
echo
"Sending email to
$EMAIL
"
echo
"This is a test email"
| mail
-s
"Test email from
`
cat
/etc/hostname
`
"
$EMAIL
sleep
10
grep
$EMAIL
/var/log/mail.log |
grep
bounced
grep
$EMAIL
/var/log/mail.log |
grep
bounced
>
/dev/null
if
[
$?
-ne
0
]
;
then
echo
"Sending mail failed"
exit
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment