Closed Bug 512934 Opened 15 years ago Closed 15 years ago

runtests.py could produce a false configuration based on AVM path

Categories

(Tamarin Graveyard :: Build Config, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: brbaker, Assigned: brbaker)

Details

Attachments

(1 file)

Incidentally I noticed a problem with the way this detection works. You can get a false positive from the file/directory name which file(1) prints out by default. Eg passing --avm=/opt/appcore/tamarin-redux/objdir-mips/shell/avmshell would convince the script it was running on ppc(!). Modern versions of file(1) have a -b option to suppress the filename output, but for portability there should be something like this in runtestBase.py: f = ' '.join(f) + f = f.replace(self.avm, ''); self.verbose_print('determineConfig: %s' % f)
Prior to patch config is miscalcuated: determineConfig: /c/temp/appcore/avmshell.exe: MS-DOS executable PE for MS Wind ows (console) Intel 80386 32-bit current configuration: ppc-win-tvm-release With patch: determineConfig: : MS-DOS executable PE for MS Windows (console) Intel 80386 32 -bit current configuration: x86-win-tvm-release
Attachment #396987 - Flags: review?(dschaffe)
Comment on attachment 396987 [details] [diff] [review] remove the path information to asc Looks fine. Hopefully someone does not set their AVM=CYGWIN_NT
Attachment #396987 - Flags: review?(dschaffe) → review+
patch pushed 2411:9324ad144e05
Assignee: nobody → brbaker
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: flashplayer-triage+
Flags: flashplayer-qrb+
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: