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

Some individual integration tests fail #26

Closed
ukrutt opened this issue Nov 20, 2019 · 0 comments · Fixed by #27
Closed

Some individual integration tests fail #26

ukrutt opened this issue Nov 20, 2019 · 0 comments · Fixed by #27

Comments

@ukrutt
Copy link
Contributor

ukrutt commented Nov 20, 2019

I'm working on adding some tests for a PR, and thought I'd get familiar with how to run the integration tests individually. A few of them fail, with different failure modes. Examples below, for report-no-current-activity and report-1

% make test-integration INTEGRATION_CMD=report-no-current-activity
:
>> REPORT-NO-CURRENT-ACTIVITY
mkdir -p `dirname /root/.local/share/utt/utt.log`
cp data/utt-no-current-activity.log /root/.local/share/utt/utt.log
bash -c 'diff <(utt --now "2018-08-21 20:00" report 2018-08-20) data/utt-no-current-activity.stdout'
bash: utt: command not found
:
Makefile:109: recipe for target 'report-no-current-activity' failed
make: *** [report-no-current-activity] Error 1
make: *** [test-integration-py2] Error 2
% make test-integration INTEGRATION_CMD=report-1
:
>> REPORT-1
cp data/utt-1.log /root/.local/share/utt/utt.log
cp: cannot create regular file '/root/.local/share/utt/utt.log': No such file or directory
Makefile:90: recipe for target 'report-1' failed
make: *** [report-1] Error 1
make: *** [test-integration-py2] Error 2

But some pass, like report-dayname:

% make test-integration INTEGRATION_CMD=report-dayname
:
>> REPORT-DAYNAME
utt --now "2015-2-16 12:00" report thursday | grep ^- | head -n 1 | diff data/report/dayname -
<< REPORT-DAYNAME
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 a pull request may close this issue.

1 participant