Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: draw more attention to desync #918

Merged
merged 1 commit into from Feb 4, 2019
Merged

Conversation

tmatth
Copy link
Member

@tmatth tmatth commented Feb 4, 2019

No description provided.

@tmatth tmatth requested a review from rzumer February 4, 2019 19:44
@tmatth tmatth force-pushed the build/bigger-desync-warning branch from 284ad5a to b5f514d Compare February 4, 2019 19:46
@tmatth
Copy link
Member Author

tmatth commented Feb 4, 2019

Looks like:

desync

I was tempted to output an alert sound too but then I realized that I had disabled them.

build.sh Outdated
@@ -108,7 +108,7 @@ ${AOM_TEST}/aomdec $ENC_FILE -o $DEC_FILE
# Input/Output compare
tail -n+2 $DEC_FILE > /tmp/dec_file
tail -n+2 $REC_FILE > /tmp/rec_file
cmp /tmp/dec_file /tmp/rec_file
cmp /tmp/dec_file /tmp/rec_file || printf '\e[1;31m%-6s\e[m\n\n' "Desync detected!!!" && exit 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cmp /tmp/dec_file /tmp/rec_file || printf '\e[1;31m%-6s\e[m\n\n' "Desync detected!!!" && exit 1
cmp /tmp/dec_file /tmp/rec_file || printf '\e[1;31m%-6s\e[m\n\n' 'Desync detected!!!' && exit 1

the ! could be problematic if you do not single-quote the string

@lu-zero
Copy link
Collaborator

lu-zero commented Feb 4, 2019

works also on the ugly

GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)

@tmatth tmatth force-pushed the build/bigger-desync-warning branch from b5f514d to f021021 Compare February 4, 2019 20:02
@coveralls
Copy link
Collaborator

Coverage Status

Coverage increased (+0.8%) to 81.877% when pulling f021021 on build/bigger-desync-warning into 5cdd2b2 on master.

@tmatth tmatth merged commit 27427d0 into master Feb 4, 2019
@tmatth tmatth deleted the build/bigger-desync-warning branch February 4, 2019 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants