AttributeError: 'LavaClient' object has no attribute 'android_result_dir'

Bug #873043 reported by Paul Larson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LAVA Dispatcher
Fix Released
Critical
Spring Zhang
Linaro Android
Fix Released
Undecided
Frans Gifford

Bug Description

in __init__.py:
    @property
    def lava_result_dir(self):
        if self.client.android_result_dir:
            return self.client.android_result_dir
        return self.config.get("LAVA_RESULT_DIR")

I'm not entirely sure why this was added, but since the non-android client doesn't have a android_result_dir() method, this will fail for everything but android. For that matter, why does the android result dir need to be a different method at all? As far as I can tell, the only difference is that the android_result_dir() method creates and sets permissions on the result directory first.

Related branches

Paul Larson (pwlars)
Changed in lava-dispatcher:
importance: Undecided → Critical
assignee: nobody → Spring Zhang (qzhang)
milestone: none → 2011.10
Revision history for this message
Zach Pfeffer (pfefferz) wrote :

Frans, would you mind taking a look at this?

Changed in linaro-android:
assignee: nobody → Frans Gifford (fgiff)
Revision history for this message
Paul Larson (pwlars) wrote :

@zach, @frans: This isn't in the currently deployed version of lava-dispatcher, so you shouldn't be getting hit by it right now.

Revision history for this message
Spring Zhang (qzhang) wrote :

android_result_dir is a member of AndroidLavaClient, it's recreated as a random dir under lava_result_dir when AndroidLavaClient initialization to fix the issue that all Android dispatcher share a same result dir. So when it is AndroidLavaClient, it will return the random dir.
I'll add a determination for AndroidLavaClient in code.

Spring Zhang (qzhang)
Changed in lava-dispatcher:
status: New → Fix Committed
Changed in linaro-android:
status: New → Fix Committed
Fathi Boudra (fboudra)
Changed in lava-dispatcher:
status: Fix Committed → Fix Released
Frans Gifford (fgiff)
Changed in linaro-android:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.