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

Copying Modulemd.ModuleStream.community into C #418

Merged
merged 1 commit into from
Jan 8, 2020
Merged

Copying Modulemd.ModuleStream.community into C #418

merged 1 commit into from
Jan 8, 2020

Conversation

madhavmehndiratta
Copy link
Contributor

I'm getting error while using ninja test, here is the error https://paste.centos.org/view/83ee0ace

Copy link
Collaborator

@sgallagher sgallagher left a comment

Choose a reason for hiding this comment

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

libmodulemd:ERROR:../modulemd/tests/test-modulemd-modulestream.c:1993:module_stream_v2_test_community: assertion failed (community == MMD_TEST_DOC_TEXT): (NULL == "http://example.com")

The error is right there in the paste.

The problem is that you need to use the correct objects when getting and setting values. MMD_TEST_DOC_PROP is not the right property for setting and retrieving the 'community' property.

@@ -2311,6 +2411,20 @@ main (int argc, char *argv[])
module_stream_v2_test_rpm_map,
NULL);

g_test_add ("/modulemd/v2/modulestream/v1/community",
Copy link
Member

Choose a reason for hiding this comment

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

I'd suggest you to use g_test_add_func() like its done below because we have to change it into that anyway.

NULL,
module_stream_v2_test_community,
NULL);

g_test_add_func ("/modulemd/v2/modulestream/v2/unicode/description",
Copy link
Member

Choose a reason for hiding this comment

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

Please replace g_test_add() with this.

@OrionStar25
Copy link
Member

OrionStar25 commented Jan 8, 2020

-- command ---
/usr/bin/python3 /builddir/travis/../modulemd/tests/test-dirty.py
--- stdout ---
Autoformatter was not run before submitting. Please run `ninja test`, amend the commit and resubmit this pull request.
--- stderr ---

@Mr-M1M3:

  1. Please make the changes I suggested above.
  2. Run ninja test to see if all tests pass and try to solve them locally before pushing your commits for review. Run a final ninja test before committing.
  3. Squash your commits into a single patch and force-push.

Copying python tests to C

Fixed some errors

Added v1 module

Fixed some errors
Copy link
Member

@OrionStar25 OrionStar25 left a comment

Choose a reason for hiding this comment

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

Good work!

@sgallagher sgallagher merged commit 146a950 into fedora-modularity:master Jan 8, 2020
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.

3 participants