summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* busybox: fix "sed n (flushes pattern space, terminates early)" testcase failuredengke/busybox-fix-sed-n-testcase-failureDengke Du2016-09-012-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is a busybox upstream known bug. When the busybox sed sub-command 'n' hit the files EOF, it print an extra character that have been printed, but the GNU sed would not print it. In busybox source code ../editors/sed.c ------------------------------------------------------------------------ case 'n': if (!G.be_quiet) sed_puts(pattern_space, last_gets_char); if (next_line) { free(pattern_space); pattern_space = next_line; last_gets_char = next_gets_char; next_line = get_next_line(&next_gets_char, &last_puts_char, last_gets_char); substituted = 0; linenum++; break; } /* fall through */ /* Quit. End of script, end of input. */ case 'q': /* Exit the outer while loop */ free(next_line); next_line = NULL; goto discard_commands; ------------------------------------------------------------------------ when read at the end of the file, the 'next_line' is null, it would go "case 'q'" and goto discard_commands, the discard_commands would print the old pattern space which have been printed. So in order to comply with GNU sed, in case 'n', when the next_line is null I add "else" at the end of the second "if": "goto again;" and send it to the busybox upstream, the busybox maintainer adopt it and make a little changes to the patch, we can see it at: His reply: http://lists.busybox.net/pipermail/busybox/2016-September/084613.html The new patch on busybox master branch: https://git.busybox.net/busybox/commit/?id=76d72376e0244a5cafd4880cdc623e37d86a75e4 Signed-off-by: Dengke Du <dengke.du@windriver.com>
* ref-manual: Fixed small wording in PKGR in the glossaryScott Rifenbark2016-08-251-2/+2
| | | | | | | | | Fixes [YOCTO #10138] (From yocto-docs rev: e49e5055e48f3c426090d2bc62b2bffbc2577dd0) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ref-manual: Replaced "bitbake-dumpsigs" with "bitbake-dumpsig".Scott Rifenbark2016-08-251-4/+4
| | | | | | | | | Fixes [YOCTO #10141] (From yocto-docs rev: e74a66d146e7f666a71f2dab6a5f78de5ad1966c) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ref-manual: Updates to PKGV, PKGE, and PKGR.Scott Rifenbark2016-08-251-8/+6
| | | | | | | | | | | Fixes [YOCTO #10138] Small wording changes. (From yocto-docs rev: 66afe7560f086ea350df92b2b40ce5790d3d523c) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dev-manual, ref-manual: Systemd-boot: Update documents for new EFI bootloaderScott Rifenbark2016-08-253-131/+138
| | | | | | | | | | | | | | | Fixes [YOCTO #9707] * Replaced gummiboot with systemd-boot in the dev-manual * Replaced the gummiboot class with a new systemd-boot class * Replaced the appropriate gummiboot variables in the glossary with new variables SYSTEMD_BOOT_CFG, SYSTEMD_BOOT_ENTRIES, and SYSTEMD_BOOT_TIMEOUT. (From yocto-docs rev: 778b620e65cc68531b3c41aeb8f27f2a07eb0d00) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ref-manual: Added bitbake.conf to list of example conf filesScott Rifenbark2016-08-251-1/+2
| | | | | | | | | | | | Fixes [YOCTO #10144] In the "Viewing Variable Names" section, there is a list of example configuration files. I added bitbake.conf to the list. (From yocto-docs rev: 5a19d5c314881e223aaa567c8eb8f6ed4fbc01df) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ref-manual: Suggested fleshing out of the sigdata/siginfo documentationScott Rifenbark2016-08-252-54/+130
| | | | | | | | | | | | | | | | | | | | | | | | Fixes [YOCTO #10141] Provided several fixes to address this situation: * Renamed "Debugging Build Failures" to "Debugging Tools and Techniques" as it fit better the subsections. * Renamed "Viewing Dependencies" to "Viewing Dependencies Between Recipes and Tasks" as it fit better the description. * Added a new "Viewing Task Variable Dependencies" section to describe how sigdata and siginfo stuff can be used. * Replaced the contents of "4.3.4.1 Debugging" with a shorter bit that now references into the new section on veiwing task variable dependencies. (From yocto-docs rev: 539d76366055bed74ccc926519e969324cac470d) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ref-manual: Updated some variables in the glossary for nits.Scott Rifenbark2016-08-251-8/+23
| | | | | | | | | | | | | | | | Fixes [YOCTO #10138] Small fixes for the following variables: * PKGV * PV * PE * PR (From yocto-docs rev: 4ffc6a2fed330cec320e744561df3aad2a349cf5) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Added developer note for updating to NeonScott Rifenbark2016-08-251-0/+5
| | | | | | | (From yocto-docs rev: bd21fdd102d7daa3f03b978760d9190a3815e243) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Updated boxes to check when installing pre-built mars yp plug-inScott Rifenbark2016-08-251-2/+1
| | | | | | | | | Removed the Bitbake commander item and renamed the ADT one to SDK. (From yocto-docs rev: 7bb7823bd9991ce95315b76bdfb3175c53198401) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Removed "snapshot" in an example version string.Scott Rifenbark2016-08-251-1/+1
| | | | | | | (From yocto-docs rev: 5ce7ad30cfc95b459a3da7b1cc540d1207d50dd8) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Added note to link to the wiki on building an SDKScott Rifenbark2016-08-251-13/+23
| | | | | | | (From yocto-docs rev: 29704fa495a97279c5d4e29bee22f0aaa9e15cba) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Added an example name for an extensible SDKScott Rifenbark2016-08-251-3/+8
| | | | | | | (From yocto-docs rev: bbc2ac36d19713242307b73393035d3fca6ed5a0) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Fixed a broken "do_install" task linkScott Rifenbark2016-08-251-1/+1
| | | | | | | (From yocto-docs rev: bef1a51e0c0a5a0145e942c1cc3f868f1cfaa03c) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Fixed a broken link to the "base" classScott Rifenbark2016-08-251-1/+1
| | | | | | | (From yocto-docs rev: 22eba313276ea95030634eef8632e4e05cb1e484) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: "Linkified" the CC variable in section 3.3.4Scott Rifenbark2016-08-251-1/+2
| | | | | | | (From yocto-docs rev: d020cfc08e5d0679d7d5d3fd4269be877413e863) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Grammar fix.Scott Rifenbark2016-08-251-1/+2
| | | | | | | (From yocto-docs rev: 709481dd0711abda063120f775b35b58c9a2af15) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Updated the extensible SDK installer exampleScott Rifenbark2016-08-251-4/+23
| | | | | | | (From yocto-docs rev: 3791f4abc21c565f7e258a550e66327dbbe7a384) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Re-worded Step 6 for deploying image in eclipse flow.Scott Rifenbark2016-08-251-7/+6
| | | | | | | (From yocto-docs rev: dd0b96a3917ab6b6c0a22af1d23f48beee6a2cd3) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Added note about building the image for QEMU useScott Rifenbark2016-08-251-8/+22
| | | | | | | | | | | | Placed a note in step 4 of the "Workflow Using Eclipse(tm)" section that an alternative method to getting the target root filesystem and toolchain is to build them out. Referenced the wiki. (From yocto-docs rev: 60720be0fe0d29a0b695005bb40f5b0c25475b55) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Removed bad linkScott Rifenbark2016-08-251-5/+3
| | | | | | | | | | Dumped a link to pre-built kernel naming information. The link was to the sdk-manual, which made no sense. (From yocto-docs rev: 9b7a9f8217d9251f2d7166afc0bb3b4235264201) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Provided better wording to intro running sdk env script.Scott Rifenbark2016-08-251-6/+7
| | | | | | | (From yocto-docs rev: 41b9b8170179a59b6534db9e926d5086be7d4328) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Added note about building and SDKScott Rifenbark2016-08-251-0/+11
| | | | | | | (From yocto-docs rev: 6518e03bc0259af04f01596f3f66c123616063e7) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Used &DISTRO; for some output release versions.Scott Rifenbark2016-08-251-5/+5
| | | | | | | (From yocto-docs rev: 4dbcd9957366665028adf955951af6256e67c152) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sdk-manual: Created new Mars Eclipse appendixScott Rifenbark2016-08-254-189/+914
| | | | | | | | | | | | | | | | | | Fixes [YOCTO #7546] First draft of the new appendix supporting the Mars version of eclipse. New appendix file created and entry made to the sdk-manual.xml file to include that new appendix file into the main book. (From yocto-docs rev: 2fb79c29bcbb5c0801f67d4c245c07c3aa9d2ca2) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> sdk-manual: WIP on appendix C Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* core-image-kernel-dev.bb: Standardize use of _append and leading space.Robert P. J. Day2016-08-251-1/+1
| | | | | | | | (From OE-Core rev: 00027aee12f4bbc9a4ba607c91fcc1e0e8257fa2) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-firmware: set a preferred provider for brcmfmac-sdio.binRoss Burton2016-08-251-0/+1
| | | | | | | | | | | | | This recipe packages six alternatives to brcmfmac-sdio.bin but as they all have equal priority there is no determinism on what provider will be used if they are all installed. Arbitrarily select 4339 to be the highest priority. (From OE-Core rev: 72a3b7eda202336014e9246019885357d8025050) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* groff: correct the location path for awkZhenbo Gao2016-08-251-0/+6
| | | | | | | | | | awk is located at /usr/bin/, but not /bin/ (From OE-Core rev: a3d9d310866fe37f9c072bc81203cbf1b7ca688b) Signed-off-by: Zhenbo Gao <zhenbo.gao@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: Correct perl path for ptestHe Zhe2016-08-251-0/+1
| | | | | | | | | | Substitute /usr/local with ${bindir} (From OE-Core rev: bc372d65bc395290e1b7132908a3b943e1b73144) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lsbinitscripts: 9.64 -> 9.68Wang Xin2016-08-252-5/+6
| | | | | | | | | | Upgrade lsbinitscripts from 9.64 to 9.68. (From OE-Core rev: d3f6df98318f0751948041a129faed1bd0f7a7c6) Signed-off-by: Wang Xin <wangxin2015.fnst@cn.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: split systemd-containerChen Qi2016-08-251-3/+35
| | | | | | | | | | | | | | | | Split container/vm related units into a new package, systemd-container. The split mainly references Fedora 24, with a few differences. Apart from the bash and zsh completion files, the differences include adding systemd-spawn@.service into the systemd-container package. [YOCTO #9835] (From OE-Core rev: 2a4bf6e4c96a8104733add315166210f04c02caf) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs.py: allow removal of unneeded packagesStephano Cetola2016-08-251-1/+3
| | | | | | | | | | | | | | | Current functionality allows for the removal of certain packages based on the read-only image feature. This patch extends this functionality by adding the FORCE_RO_REMOVE variable, which will remove these packages regardless of any image features. [ YOCTO #9491 ] (From OE-Core rev: cfb869ffd4c37c3cc8e6b3eb732c1a7b7cfc3cb0) Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* unfs3: Simplify simultaneous usage of "_append" and "+="Robert P. J. Day2016-08-251-2/+2
| | | | | | | | (From OE-Core rev: 3437c0da8e89acb414298a338e13a8ae3efaad27) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* build-perf-test-wrapper.sh: make workdir configurableMarkus Lehtonen2016-08-251-3/+9
| | | | | | | | | | | New command line argument '-w' may be used to specify work dir other than the default <GIT_DIR>/build-perf-test. (From OE-Core rev: 824284895f25146520a624b7b97f7475d0135814) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* build-perf-test-wrapper.sh: make archive dir configurableMarkus Lehtonen2016-08-251-8/+14
| | | | | | | | | | | | Add new command line argument '-a' that can be used to define the directory where results (tarballs) are archived. Giving an empty string disables archiving which makes sense if you store results in Git. (From OE-Core rev: d53cf92847aa80724be4412801c993948a09cd27) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* build-perf-test-wrapper.sh: allow saving results in GitMarkus Lehtonen2016-08-251-3/+11
| | | | | | | | | | | Add new command line argument '-C' that allows saving results in a Git repository. (From OE-Core rev: 3d06795d8cd9017b042a7283c16ac71d4f6317a6) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* build-perf-test-wrapper.sh: parse args with getoptsMarkus Lehtonen2016-08-251-7/+23
| | | | | | | | | | | | Use getopts for parsing the command line. This changes the usage so that if a commit (to-be-tested) is defined it must be given by using '-c', instead of a positional argument. (From OE-Core rev: b1f77ba41033397a2b25977963682b86f2f76471) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oe-build-perf-test: add {git_commit_count} keyword for --commit-results-tagMarkus Lehtonen2016-08-252-1/+2
| | | | | | | | | | | Makes it possible to create easily sortable tags. Also, the default tag format is updated to use the new keyword. (From OE-Core rev: e3161654d75dfc3b059c519205b38b26e3ffb215) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oeqa.buildperf: add git commit count to result dataMarkus Lehtonen2016-08-251-7/+11
| | | | | | | | | | | This number represents the number of commits since the beginning of git history until the tested revision. This helps e.g. in ordering results. (From OE-Core rev: b52070dd057ff5b410cd193f9be2f25bc4c506cc) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oe-build-perf-test: new {tag_num} keyword for --commit-results-tagMarkus Lehtonen2016-08-252-5/+16
| | | | | | | | | | | | | | | | | | | | | | This makes it possible to create numbered tags, where the "basename" of the tag is the same and the only difference is an (automatically) increasing index number. This is useful if you do multiple test runs on the same commit. For example, using: --commit-results-tag {tester_host}/{git_commit}/{tag_num} would give you tags something like: myhost/decb3119dffd3fd38b800bebc1e510f9217a152e/0 myhost/decb3119dffd3fd38b800bebc1e510f9217a152e/1 ... The default tag format is updated to use this new keyword in order to prevent unintentional tag name clashes. (From OE-Core rev: cf2aba16338a147f81802f48d2e24a96c7133548) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oe-build-perf-test: tag results committed to GitMarkus Lehtonen2016-08-252-2/+15
| | | | | | | | | | | | | | | | | | | | Create a Git tag when committing results to a Git repository. This patch also implements --commit-results-tag command line option for controlling the tag name. The value is a format string where the following fields may be used: - {git_branch} - target branch being tested - {git_commit} - target commit being tested - {tester_host} - hostname of the tester machine Tagging can be disabled by giving an empty string to --commit-results-tag. The option has no effect if --commit-results is not defined. (From OE-Core rev: 60059ff5b81d6ba9ba344161d51d1290559ac2df) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oe-build-perf-test: pre-check Git repo when using --commit-resultsMarkus Lehtonen2016-08-251-0/+27
| | | | | | | | | | | | | | Do a pre-check on the path that is specified with --commit-results before running any tests. The script will create and/or initialize a fresh Git repository if the given directory does not exist or if it is an empty directory. It fails if it finds a non-empty directory that is not a Git repository. (From OE-Core rev: 759357a3bdbe75a3409b9e58979ab8b45d9b6ae8) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oeqa.utils.git: implement init() methodMarkus Lehtonen2016-08-251-0/+6
| | | | | | | | | | Method for doing 'git init'. (From OE-Core rev: c848e1dac68cd859a563a82286f8bc5ddabaa423) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oe-build-perf-test: implement --commit-results-branchMarkus Lehtonen2016-08-252-1/+10
| | | | | | | | | | | | | | | | A new command line option for defining the branch where results are commited. The value is actually a format string accepting two field names: - {git_branch} expands to the name of the target branch being tested - {tester_host} expands to the hostname of the tester machine The option has no effect if --commit-results is not used. (From OE-Core rev: b54b63395ec632748a57a702812c8a9a07af35ab) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oe-build-perf-test: support committing results data to GitMarkus Lehtonen2016-08-252-0/+40
| | | | | | | | | | | | Implement a new command line option '--commit-results' which commits the test results data into a Git repository. The given path must be an existing initialized local Git repository. (From OE-Core rev: b6f635513ca971402e7a970acc2168fb5d4a9476) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oeqa.buildperf: use term commit instead of revisionMarkus Lehtonen2016-08-251-15/+15
| | | | | | | | | | | | This is basically a internal change, at this point. Term 'commit' better represents the data we actually have. Term 'revision' is more vague and could be understood to point to a tag object, for example. (From OE-Core rev: f49cf7959b8aaa52b79b22a5884c6aa580a50302) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oeqa.utils.git.GitRepo: new arg to require topdirMarkus Lehtonen2016-08-251-2/+7
| | | | | | | | | | | | | | | Add a new 'is_topdir' argument to the GitRepo init method which validates that the given path is the top directory of a Git repository. Without this argument GitRepo also accepts subdirectories of a Git repository (in which case GitRepo will point to the parent directory that is the top directory of this repository) which may have undesired in some cases. (From OE-Core rev: 044c81bd916fbe7140d184eb103f74786cfef604) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oeqa.utils.git: implement GitRepo.get_current_branch()Markus Lehtonen2016-08-252-5/+10
| | | | | | | | (From OE-Core rev: dcba2302adab47b398f1ce7d09c38828ea9ae426) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oeqa.utils.git: introduce GitRepo.rev_parse()Markus Lehtonen2016-08-252-1/+8
| | | | | | | | (From OE-Core rev: 55726e931536ed0cbd7b80588060b05a3145c934) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oeqa.utils.git: support git commands with updated envMarkus Lehtonen2016-08-251-2/+6
| | | | | | | | | | | | Extend GitRepo.run_cmd so that the caller may redefine and/or define additional environment variables that will be used when the git command is run. (From OE-Core rev: 9b3c7c47f5d0fa473fe1db81b59b26531414781c) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>