Skip to content

test failure test_android_manifest

https://buildd.debian.org/status/fetch.php?pkg=diffoscope&arch=all&ver=139&stamp=1585948509&raw=0

=================================== FAILURES ===================================
____________________________ test_android_manifest _____________________________

differences = [<Difference zipinfo /dev/stdin -- zipinfo /dev/stdin []>, <Difference AndroidManifest.xml (decoded) -- AndroidManifes... (decoded) [<Difference AndroidManifest.xml -- AndroidManifest.xml []>]>, <Difference APK metadata -- APK metadata []>]

    @skip_unless_tools_exist('apktool', 'zipinfo')
    @pytest.mark.skipif(
        sys.version_info < (3, 8), reason="requires Python 3.8 or higher"
    )
    def test_android_manifest(differences):
        assert differences[1].source1 == 'AndroidManifest.xml (decoded)'
        assert differences[1].source2 == 'AndroidManifest.xml (decoded)'
        expected_diff = get_data('apk_manifest_expected_diff')
>       assert differences[1].details[0].unified_diff == expected_diff
E       assert '@@ -1,9 +1,9...d:name=""/>\n' == '@@ -1,9 +1,9 ...ion.MAIN"/>\n'
E           @@ -1,9 +1,9 @@
E            <?xml version="1.0" encoding="utf-8"?>
E         - -<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="" package="com.any.any" platformBuildVersionCode="24" platformBuildVersionName="7.0.0">
E         ?                                                                                                                    ^
E         + -<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.any.any" platformBuildVersionCode="24" platformBuildVersionName="7.0.0">
E         ?                                                                                                                    ^^^^
E         - +<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="2" android:versionName="" package="com.any.any" platformBuildVersionCode="24" platformBuildVersionName="7.0.0">
E         ?                                                                                                                    ^
E         + +<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="2" android:versionName="2.0" package="com.any.any" platformBuildVersionCode="24" platformBuildVersionName="7.0.0">
E         ?                                                                                                                    ^^^^
E         -    <uses-permission android:name=""/>
E         -    <uses-permission android:name=""/>
E         -    <uses-permission android:name=""/>
E         +    <uses-permission android:name="android.permission.INTERNET"/>
E         +    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
E         +    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
E              <application>
E         -      <activity android:name="">
E         +      <activity android:name="com.any.any.SomeActivity">
E                  <intent-filter>
E         -          <action android:name=""/>
E         +          <action android:name="android.intent.action.MAIN"/>

differences = [<Difference zipinfo /dev/stdin -- zipinfo /dev/stdin []>,
 <Difference AndroidManifest.xml (decoded) -- AndroidManifest.xml (decoded) [<Difference AndroidManifest.xml -- AndroidManifest.xml []>]>,
 <Difference APK metadata -- APK metadata []>]
expected_diff = ('@@ -1,9 +1,9 @@\n'
 ' <?xml version="1.0" encoding="utf-8"?>\n'
 '-<manifest xmlns:android="http://schemas.android.com/apk/res/android" '
 'android:versionCode="1" android:versionName="1.0" package="com.any.any" '
 'platformBuildVersionCode="24" platformBuildVersionName="7.0.0">\n'
 '+<manifest xmlns:android="http://schemas.android.com/apk/res/android" '
 'android:versionCode="2" android:versionName="2.0" package="com.any.any" '
 'platformBuildVersionCode="24" platformBuildVersionName="7.0.0">\n'
 '   <uses-permission android:name="android.permission.INTERNET"/>\n'
 '   <uses-permission '
 'android:name="android.permission.ACCESS_COARSE_LOCATION"/>\n'
 '   <uses-permission '
 'android:name="android.permission.ACCESS_FINE_LOCATION"/>\n'
 '   <application>\n'
 '     <activity android:name="com.any.any.SomeActivity">\n'
 '       <intent-filter>\n'
 '         <action android:name="android.intent.action.MAIN"/>\n')

tests/comparators/test_apk.py:74: AssertionError
---------------------------- Captured stderr setup -----------------------------
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x0000000d
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x0000000d
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000011
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000012
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000013
W: Could not decode attr value, using undecoded value instead: ns=android, name=minSdkVersion, value=0x00000002
W: Could not decode attr value, using undecoded value instead: ns=android, name=targetSdkVersion, value=0x00000017
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000017
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000001a
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000001c
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000002
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x0000000d
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000002
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x0000000d
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000011
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000012
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000013
W: Could not decode attr value, using undecoded value instead: ns=android, name=minSdkVersion, value=0x00000002
W: Could not decode attr value, using undecoded value instead: ns=android, name=targetSdkVersion, value=0x00000017
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000017
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000001a
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000001c

(that's also the reason I didn't upload 139 after my commit…)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information