Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed cygwin.rb

All test tasks now pass.
  • Loading branch information...
commit 5b931f2dae00ea46cf99368c8cfa0d009f576912 1 parent dd19a56
@argent-smith argent-smith authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/autotest_notification/cygwin.rb
View
8 lib/autotest_notification/cygwin.rb
@@ -6,11 +6,11 @@ class << self
def notify(title, msg, img, total = 1, failures = 0)
img = get_image_path(img).strip
system "sncmd /m '#{title}' '#{msg}' '#{img}' /t #{Config.expiration_in_seconds}"
- play(SUCCESS_SOUND) if AutotestNotification.const_defined?("SUCCESS_SOUND") && !SUCCESS_SOUND.empty? && failures == 0
- play(FAILURE_SOUND) if AutotestNotification.const_defined?("FAILURE_SOUND") && !FAILURE_SOUND.empty? && failures > 0
- say(total, failures) if DOOM_EDITION
+ play(SUCCESS_SOUND) if AutotestNotification.const_defined?("SUCCESS_SOUND") && !SUCCESS_SOUND.empty? && failures == 0
+ play(FAILURE_SOUND) if AutotestNotification.const_defined?("FAILURE_SOUND") && !FAILURE_SOUND.empty? && failures > 0
+ say(total, failures) if AutotestNotification.const_defined?("DOOM_EDITION") && DOOM_EDITION
end
-
+
def get_image_path(img)
`cygpath -m #{img}`
end
Please sign in to comment.
Something went wrong with that request. Please try again.