Thanks to the work from HOW-TO enable MarkDown support in RobotFramework
I went a bit further by enabling markdown support with test cases written in the tables.
| git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch FILE_PATH' --prune-empty --tag-name-filter cat -- --all | |
| git push origin master --force | |
| rm -rf .git/refs/original/ | |
| git reflog expire --expire=now --all | |
| git gc --prune=now |
| First, all images are stored in the Hyper-V drive | |
| C:\Users\Public\Documents\Hyper-V\Virtual hard disks | |
| In Windows 10, | |
| Stop docker etc | |
| Type “Hyper-V Manager” in task-bar search box and run it. | |
| Select your PC in the left hand pane (Mine is called DESKTOP-CBP**) | |
| Right click on the correct virtual machine (Mine is called MobyLinuxVM) |
| #!/usr/bin/python | |
| import sys, os | |
| from sys import argv | |
| from unidiff import PatchSet | |
| import subprocess | |
| def parse_log_line(line): | |
| """ | |
| parse a line from the cpplint results with --output=vs7 |
| diff --git a/cpplint.py b/cpplint.py | |
| index 95c0c32..fc8f6ba 100755 | |
| --- a/cpplint.py | |
| +++ b/cpplint.py | |
| @@ -3897,6 +3897,8 @@ def CheckBraces(filename, clean_lines, linenum, error): | |
| # within the 80 character limit of the preceding line. | |
| prevline = GetPreviousNonBlankLine(clean_lines, linenum)[0] | |
| if (not Search(r'[,;:}{(]\s*$', prevline) and | |
| + # test a C function definition | |
| + not Search(r'(void\s*|\(\s*|\w+(\s+\**\w+)+(,\s*\w+(\s+\**\w+)+)*\s*)\)', prevline) and |
| diff --git a/cpplint.py b/cpplint.py | |
| index 95c0c32..b8cabad 100755 | |
| --- a/cpplint.py | |
| +++ b/cpplint.py | |
| @@ -4466,6 +4466,9 @@ def CheckStyle(filename, clean_lines, linenum, file_extension, nesting_state, | |
| if line.find('\t') != -1: | |
| error(filename, linenum, 'whitespace/tab', 1, | |
| 'Tab found; better to use spaces') | |
| + if Match('^\s* \t', line) or Match('^\s*\t ', line): | |
| + error(filename, linenum, 'whitespace/indent', 1, |
| diff --git a/cpplint.py b/cpplint.py | |
| index b8cabad..769a61a 100755 | |
| --- a/cpplint.py | |
| +++ b/cpplint.py | |
| @@ -3564,7 +3564,7 @@ def CheckParenthesisSpacing(filename, clean_lines, linenum, error): | |
| line = clean_lines.elided[linenum] | |
| # No spaces after an if, while, switch, or for | |
| - match = Search(r' (if\(|for\(|while\(|switch\()', line) | |
| + match = Search(r'\b(if\(|for\(|while\(|switch\()', line) |
| #!/bin/python | |
| import sys, os | |
| import argparse | |
| class macro_directive(object): | |
| def __init__(self, name, comment): | |
| self.name = name[1:] if name[0] == "#" else name | |
| self.comment = comment | |
| self.path = True |
Thanks to the work from HOW-TO enable MarkDown support in RobotFramework
I went a bit further by enabling markdown support with test cases written in the tables.
| if { [info exists CHIPNAME] } { | |
| set _CHIPNAME $CHIPNAME | |
| } else { | |
| set _CHIPNAME xc6v | |
| } | |
| set XC6_CFG_IN 0x05 | |
| set XC6_JSHUTDOWN 0x0d | |
| set XC6_JPROGRAM 0x0b | |
| set XC6_JSTART 0x0c |
| #!/bin/sh | |
| # @Author: xzhih | |
| # @Date: 2017-07-29 06:10:54 | |
| # @Last Modified by: xzhih | |
| # @Last Modified time: 2018-10-08 13:49:26 | |
| # 软件包列表 | |
| # remove sed as it's already part of busybox | |
| # replace nginx-extras with nginx as nginx-extras can't be found as of openwrt 18.06.02 | |
| pkglist="wget unzip grep tar ca-certificates coreutils-whoami php7 php7-cgi php7-cli php7-fastcgi php7-fpm php7-mod-mysqli php7-mod-pdo php7-mod-pdo-mysql nginx mariadb-server mariadb-server-extra mariadb-client mariadb-client-extra" |